Hi
I need to save my game state when the user presses the Home button or receive a phone call, and later run the game again (Android and iOS), it must be at the same state of gameplay.
Is there any way of doing this?
Thanks
Jose
Hi
I need to save my game state when the user presses the Home button or receive a phone call, and later run the game again (Android and iOS), it must be at the same state of gameplay.
Is there any way of doing this?
Thanks
Jose
Sure. I’m not sure how much of this you need help with, but start with the system events where you get a SUSPEND event whenever your app goes into the background.
http://docs.coronalabs.com/api/event/system/type.html
There are numerous ways to save your games state. But unless your app is set to exit (which on iOS it should not), it should pick back up on resume and you should only have to pause timers, transitions, physics and such.
Rob
Sure. I’m not sure how much of this you need help with, but start with the system events where you get a SUSPEND event whenever your app goes into the background.
http://docs.coronalabs.com/api/event/system/type.html
There are numerous ways to save your games state. But unless your app is set to exit (which on iOS it should not), it should pick back up on resume and you should only have to pause timers, transitions, physics and such.
Rob