...

View Full Version : Push in the right direction please on a word guess game I'm creating



Bcreative
12-09-2006, 05:53 AM
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!

Mr J
12-09-2006, 02:09 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum