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?
Printable View
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?
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.