I am doing a card matching game (memory game), I have set one of the variables as lives.
When you match 5 wrong pairs of cards, the game will end.
My problem is:
Because I don't know how many lives the player will use, what do I do if the player still has 1,2,3,4 or 5 lives left? How can I change the background to "You Win" when the player still has 1,2,3,4,of 5 lives left? How can I stop all the sprites/cards?
Offline