Pausing game?

I want to enable a functionality in my app similar to other games (if an incoming push comes in or some other event that interrupts gameplay), I want to pause the game so they dont die while they’re preoccupied with some popup. How can this be accomplished?

Also is there a way to pause transitions so my pause would simply be to pause all the transition effects on screen, then when the user un-pauses it just resumes those transitions?

Thanks! [import]uid: 6317 topic_id: 1183 reply_id: 301183[/import]

Afaik you can’t “pause” the application state easily … Your application will be “quit” even on iOS4 (hence no automatic availability of quick application switching for unprepared apps)

You basically need to provide a Store / Restore functionality for your app and setup the right event listeners to react on.

How smooth this looks is part of how good you implement this. For example it could be possible to store the state of every transition.but may be overkill.

I believe ansca could provide some serialization code for the state of any of their objects (including transitions) but if that would not include “everything” it will still be hard to write a perfect “pause” for more complex programs.

Best seems to be if you have load / save and autosave at this moment … That is what I implement for my app. [import]uid: 6928 topic_id: 1183 reply_id: 3356[/import]