2 Player Switching Turns Help
michaelpaulmartinez
Member Posts: 12
I already have a boolean attribute called "Activated card" that identifies when two cards have been flipped. I have 24 cards and I have a score system that counts the total pairs. I made an Integer attribute called Switch turn that switches between each player if "activated card" is true and "score" is 0, Switch attribute = (switch+1)%2, makes it switch fine. The trouble is keeping it on the player when he gets a correct pair and stop it from switching. Any ideas on how you would solve this would help me greatly. Thanks. I have tried when score = 1 to stop the switch. And then set the score back to 0 to start the cycle over again. But for some reason it keeps on switching.
Comments