I have an iOS SpriteKit game, which has a moving node. When you press the pause button, the node.isPaused = true
line gets called. But if you press pause, then minimize the app, and relaunch it, the node gets back to moving, even under the transparent "Pause" menu.
I have tried the proposition from the following answer: Answer1. But, even if I call my scene's pauseGame
method in any state, the function gets called, but the node restarts moving even under the pause menu.
I have also tried the answer from: Answer2. But the CBApplicationDidBecomeActive()
isn't even getting called.
And I have even tried using scene?.view?.isPaused = true
in the methods of link 1, but it doesn't work.
Please help.
I know there are lots of similar questions out there, but none of them seem to help solve what I have. (and even, the question from the 2nd link didn't even get an accepted answer)