Computer Science Canada help making memory game |
Author: | kishan25 [ Tue Jan 13, 2009 6:19 pm ] |
Post subject: | help making memory game |
i need help with making memory game with graphics. the cards should come randomly. i have the random part, but i need to check if the cards clicked are same or not, and if they are same , they should remain open or disapper. |
Author: | illzidaneyou [ Tue Jan 13, 2009 6:43 pm ] |
Post subject: | RE:help making memory game |
ask mr. C ![]() gee mother! |
Author: | syntax_error [ Tue Jan 13, 2009 7:30 pm ] |
Post subject: | RE:help making memory game |
if yo have the random part, then store in a var the value of one card compare it to the next card that is clicked? |
Author: | kishan25 [ Tue Jan 13, 2009 8:25 pm ] |
Post subject: | RE:help making memory game |
i know that i have to compare it but i actually dont know how to do that. |
Author: | syntax_error [ Tue Jan 13, 2009 10:56 pm ] |
Post subject: | RE:help making memory game |
You have placing the cards on the screen randomly correct? Now make each card a button, in a way, record the x and y values of each card then check where the user clicks if it matches the set limits for a certain card then that is your new value. And you compare with this value, does that make more sense? |
Author: | kishan25 [ Tue Jan 13, 2009 11:10 pm ] |
Post subject: | RE:help making memory game |
i can do that but it will become more complicated and long |