|
-
May 3rd, 2007, 07:12 PM
#1
Thread Starter
Lively Member
Memory-code help
im trying to make the game memory. i have 16 shapes with two matching. each shape is covered with a command button. everything is array. how do i only open two colors and if the colors dont match how does it reset automatically?
-
May 4th, 2007, 01:59 AM
#2
Re: Memory-code help
One way:
Use a counter, a the start Counter=0
first click (only one shape visible) Counter=1
second click (you know, two shapes visible) counter=2
If counter=2 check if both shapes visible are the same (do the neccessary stuff here), else (the shapes are not the same) make the shapes unvisible again and set counter=0.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|