I'm totally baffled here.
I've got a timer that keeps spawning monsters as long as there are monsters left in an array to spawn.
Obviously, if the player pauses the game, I want this timer to pause. Pausing physics was cake, but now that I've come back around to cleaning some stuff up... I can't get the timer to pause/resume?
Basically in the onTouch for the pause button this happens:
1 2 3 4 5 6 7 8 9 10 11 12 13 | if gameIsActive then gameIsActive = false if monsterTimer then timer.pause(monsterTimer); end physics.pause() else gameIsActive = true physics.start() --resume everything if monsterTimer then print("resuming monster timer") timer.resume(monsterTimer) end end |
This is still only a feature in daily builds and we're aware that it currently has some issues. (You can see the case in FogBugz.)
Peach