matching game logic

jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
edited November -1 in Working with GS (Mac)
hopefully this doesn't get lost in the complaints :)

I know a few people have made games like this... butterbean? I think I remember an iPad matching game you made. I'm just lost. I can't figure out how to do the logic.

Touch first object
Touch second object

if match, destroy, if not match, deselect.

I've kinda got a hacked way of doing it, but it's not 100%. Anyone out there care to share their logic?

Comments

  • EastboundEastbound Member, BASIC Posts: 1,074
    I would give each card a global variable integer value. Then if they are the same number, destroy, otherwise flip back over.
Sign In or Register to comment.