I am making a pvp tank game how do I make it so my player has three lives when they get shot three times.
Here is an example with health, you could adapt the logic to use lives instead:
thanks
hey umm how do you make it so you can get killed like 5 times and then restart the whole game? thx
http://www.flowlab.io/game/play/255345
Look at my code in this.
Make it so every time you get hit by an enemy it adds -1 to the counter.