Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help making memory game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kishan25




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
illzidaneyou




PostPosted: Tue Jan 13, 2009 6:43 pm   Post subject: RE:help making memory game

ask mr. C Razz
gee mother!
syntax_error




PostPosted: 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?
kishan25




PostPosted: 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.
syntax_error




PostPosted: 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?
kishan25




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: