Author |
Message |
kishan25
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
illzidaneyou
|
Posted: Tue Jan 13, 2009 6:43 pm Post subject: RE:help making memory game |
|
|
ask mr. C
gee mother! |
|
|
|
|
![](images/spacer.gif) |
syntax_error
![](http://compsci.ca/v3/uploads/user_avatars/196798963948cf16794b6e5.jpg)
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
kishan25
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
syntax_error
![](http://compsci.ca/v3/uploads/user_avatars/196798963948cf16794b6e5.jpg)
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
kishan25
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
|