I have a game where I send a ping back to a server using AJAX every 10 seconds.
When the game is not running, I dont want this to happen. I'm using the visibility of the "Start Game" button to check this.
Once the "Every 10 Seconds" is triggered, how do I stop it once the game is over?
This is the Event
Is the condition that the textStartGame is not visible only required to start the Every X Seconds timer, or is it checked each time the timer is run? How do I stop the timer?