Hibernate and pause menu problem
Primo.TM
PRO Posts: 35
Hi,
I'm using hibernate in one of my actors to pause the game when Home button is pressed, call received, etc. It looks like:
When actor receives hibernate -> pause game and go to scene "Paused game".
All is working fine, but the problem is when hibernation occurs while in Pause scene. When you return to the game, it goes into some kind of a loop and nothing on the screen is working. I've read that this is very common, but some people managed to find a solution.
Any ideas?
I'm using hibernate in one of my actors to pause the game when Home button is pressed, call received, etc. It looks like:
When actor receives hibernate -> pause game and go to scene "Paused game".
All is working fine, but the problem is when hibernation occurs while in Pause scene. When you return to the game, it goes into some kind of a loop and nothing on the screen is working. I've read that this is very common, but some people managed to find a solution.
Any ideas?
Comments
It works as the 'Home' button on iOS but it does odd unexpected things I have found and is not reliable (unless tested thoroughly).
To answer yours I would set up a hibernate rule in the actual pause screen to unpause the game and set an attribute "hibernate = true" Then in your scene where you would normally just hibernate set a rule that says if hibernate = true then pause the game. This would only trigger if the game is hibernated when the pause screen is already present. I havent tested this so I dont actually know if it works. Just a thought.
My issue is that on Android when the home button is hit and I open the app then the game restarts. The hibernate function works if the phone is put to sleep or a call comes in but if the home button is hit and then the app is selected from the home screen the app doesnt pick up from my pause screen. Not sure if this is known or if there is another way to do this. Any help is appreciated.
Thanks,
Jon