I have a series of events and sub events when the player dies before the game over/score screen shows. What I would like to do is only on 3rd time the player dies show a fullscreen Ad via cocoonJS.
I tried creating a global variable and adding 1 to it everytime the players dies then thought this would work...
System (Compare Variable) Restart Counter => 3 THEN CocoonJS (show fullscreen ad)
However because the variable stays at 3 until the the player restarts the level the fullscreen ad condition is always met and continues to try and loop showing a fullscreen Ad.
Any easy way to do this that im completely just missing?