Using Storyboard, I have a menu scene, a GAME scene and a gameover scene, pretty simple…
The game transitions through all screens absolutely fine, until the GameOver scene.
The GameOver scene has a “play again” button which is set to go back to the GAME scene.
The GAME scene contains a TARGET number and a separate number which rapidly increases using a timer.performWithDelay.
If the rapidly increasing numbers rise above the target number, the GameOver scene is called.
If I press “play again” in the GameOver scene, it heads back to the GAME scene but the timer is still running and in turn moves back to the GameOver scene…
If I do timer.cancel(timer1) in the same function that calls the GameOver screen when the numbers rise above the TARGET number, the “play again” button leads back to the GAME scene but the timer is paused at where it was when the GameOver scene was called.
I know I’m finding it difficult to explain but I literally have no idea.
thanks.