I would like that every 3 times that the character died, a text appeared.
Every time my character dies a message appears and he has to tap the screen to play again.
From there, I would like to do the accountant.
But I can not get the counter to add +1 to each death, it can not add up from one death to another.
I was thinking of doing the following, but I do not know how:
Death Counter Variable = 0
Death Counter Variable = Death Counter Variable + 1
can anybody help me?
Thank you very much.
Develop games in your browser. Powerful, performant & highly capable.
You only need to compare when the deathCounter = 3 to allow the lose screen appear and restart the game only.
Instead of the game checks each time player dies as right now.