| | |
memory game problem
Thread Solved |
•
•
Join Date: Feb 2009
Posts: 2
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
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?
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?
•
•
Join Date: Feb 2009
Posts: 2
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- Hiii am an amateur programmer.. Want a MEMORY GAME (C++)
- Need help finishing a Memory Game (Java)
- Problem switching from console to gui. (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Memory violation messages - can any1 help me (Windows NT / 2000 / XP)
- why i can not load game on one partition but can on aother (Troubleshooting Dead Machines)
- My comp freezes when I start a game (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: label captions -> Database
- Next Thread: how can i get full months date
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





