Question about Card matching game.

CaptainChocoCaptainChoco Member, BASIC Posts: 124
edited November -1 in Working with GS (Mac)
Hi, it's me again. :)

This time, my question is... how to make card matching game without array with GS.
(you know that memory game...)
I checked some flash-tutorials but it used ARRAY... so without array... umm... so hard.
And I know some of you made great card matching here... how did you do that???

Thanks.
Ah... its almost noon in Korea... now. haha

Comments

  • StusAppsStusApps Member, PRO Posts: 1,352
    Well, I've just made a simple one. The important thing is carefully creating all your rules. The basis of mine is that each card is a separate actor. A controller actor picks pairs of cards for that round and assigns the cards to different positions on a grid formation randomly. As each card is an individual actor that turns on a boolean attribute when it is turned over it is easy to create rules for matching pairs.

    The version I have done is only for a kids game of 8 cards at a time. But it would work perfectly for a larger number of cards.

    Interestingly the maths of the shuffling the cards on the screen looked like a large sudoku on paper when I wrote it out, so had to get my wife to solve it.
  • CaptainChocoCaptainChoco Member, BASIC Posts: 124
    Aha~! I got it.
    It looks like a great solution.
    Thanks!
Sign In or Register to comment.