application suspend and resume glitch

Hi!

I just programmed a pauseMenu into my game that fires on applicationSuspend. The problem is that it actually visibly happens when resuming, and that’s something that I want to avoid.

Is this normal? To be clear, what happens is that when you push the home button the application ‘zooms out and disappears’. Then when you restart the application you see it re-open and when open you see the pause menu pop-up all of a sudden - and I do mean all of a sudden. I programmed a nice micro-transition for the pausemenu graphics but you lose all that: after zooming to the screen all the elements just appear without a transition.

Needless to say this looks a bit amateuristic. I would like to have the pausemenu be open when the app reopens, and I feel it should be this way, no? Right now it’s more of a resume event than a suspend event!

Thomas [import]uid: 70134 topic_id: 20813 reply_id: 320813[/import]

Maybe on resuming you could fire your function with a delay to avoid the issues perhaps? [import]uid: 84637 topic_id: 20813 reply_id: 81944[/import]

One suggestion; open up the pause menu when the app is suspended rather than when it is resumed? I believe that may work for your situation.

Peach :slight_smile: [import]uid: 52491 topic_id: 20813 reply_id: 82145[/import]

Hi Peach,

Unfortunately the problem I’m describing is precisely that I do call up the menu on Suspend, but visually it pops up on resume!

Thomas [import]uid: 70134 topic_id: 20813 reply_id: 82170[/import]

Ah I see, apologies, I thought you were calling it on resume. (I misread your post.)

I don’t suppose there is much to be done about that at the current time as obviously you can’t delay the suspension of the app. (Apple would never allow it.) [import]uid: 52491 topic_id: 20813 reply_id: 82181[/import]