943,853 Members | Top Members by Rank

Ad:
Feb 13th, 2009
0

memory game problem

Expand Post »
im making a game, called memory game.

i don't know the exact codes to make a picturebox move when clicked. i saw a game file that becomes a gif image when clicked, then it randomizes the last image every start of the game.
i wanted to make something like that, but i cant understand the codes in that file.

can someone help me?
or give me alternatives on what is the better way in making a memory game? like how to show the pictures etc?


*memory game is where you need to match two similar pictures.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mumuXdoll is offline Offline
2 posts
since Feb 2009
Feb 14th, 2009
0

Re: memory game problem

Essentially what you want to do is create an array of images and hide them off the form to start.

Now on load or on push of a button simply run a rand() function and call to array image[x]

Display it on a grid or wherever you want the user to see it.

Now when a user clicks on an image store that globally or in a .dat file to reference later when checking if the answer is correct.

Are you looking for the actual code or just the logic?
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Feb 15th, 2009
0

Re: memory game problem

OMG.

thanks! the logic did help. a lot.
i already created an array of picturebox (is it okay?), but i don' know where to start my codes. if i what code should come first? will i use if-then statement? and where will i get them? i really need a hand.

thanks to you for the logic.
Last edited by mumuXdoll; Feb 15th, 2009 at 5:03 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mumuXdoll is offline Offline
2 posts
since Feb 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: label captions -> Database
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: how can i get full months date





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC