Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Push in the right direction please on a word guess game I'm creating

    I've been working on a hangman style guess the artist name game. I've go it working great although I'm thinking it might be fun to have the a work of the artist appear in the place of an image I already had on the page. The artist names the guesser is guessing are random. I just need a little push on how I might get the images appear with the corrrect word in question.

    Any help would be a appreciated.
    Thanks!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Use a multidimensional array

    Example

    images=[

    ["artist1","artist1image1.jpg","artist1image2.jpg"","artist1image3.jpg"],
    ["artist2,"artist2mage1.jpg","artist2age2.jpg"","artist2mage3.jpg"],
    ["artist3,"artist3age1.jpg","artist3mage2.jpg"","artist3mage3.jpg"],
    ["artist4,"artist4age1.jpg","artist4mage2.jpg"","artist4mage3.jpg"]

    ]

    and just reference the appropriate index
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •