Restart Game at the same part from where closed

Hi everyone. I have a great doubt with this part, i am trying to, when i am playing the game and go out of the game, when i restart the game again, i need to restart at the same part from where i closed the game, i really dont know how i can do it, anyone can give me some help with that or know some places where i can see and get some help to try it?
Thanks [import]uid: 26056 topic_id: 23853 reply_id: 323853[/import]

You mean like resuming exactly where you left off after pressing say the home buton on IOS? [import]uid: 84637 topic_id: 23853 reply_id: 96088[/import]

it is like other game apps, per exemple you are on the level one, and you press the iphone buton and then go back to the game, i want to restart again at the level one and not on the beginning of the app. [import]uid: 26056 topic_id: 23853 reply_id: 96096[/import]

Add the application exits on suspend to false line to your build.settings like so :

[code]

– cpmgen build.settings
settings =
{
orientation =
{
default =“portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
},
},
iphone =
{
plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon-72.png”
},
UIStatusBarHidden = true,
UIPrerenderedIcon=“YES”,

UIApplicationExitsOnSuspend = false, --This will keep your app open in the background
},
},
[import]uid: 84637 topic_id: 23853 reply_id: 96098[/import]

Thanks danny it works fine, now i am trying to use settings for all ios devices, all the ipads, iphones and ipods, with this code is possible to show the image icon and restart from the page where the player closed to all ios devices?
[import]uid: 26056 topic_id: 23853 reply_id: 96118[/import]

Not sure what you mean by show the icon ?

by restart do you mean restart or resume? [import]uid: 84637 topic_id: 23853 reply_id: 96121[/import]

show the app icon.

the restart is the same story that you help on the beginning of this topic [import]uid: 26056 topic_id: 23853 reply_id: 96122[/import]

Show the icon where exactly?

[import]uid: 84637 topic_id: 23853 reply_id: 96128[/import]

The icon of the app, the icon on the ios menu, to enter on the app [import]uid: 26056 topic_id: 23853 reply_id: 96142[/import]

Sorry for the late reply.

Doing what I said above will pop your applications icon into the multitasking tray on IOS automatically. They can then resume your app from there, or just by tapping your app icon on the screen again. [import]uid: 84637 topic_id: 23853 reply_id: 96901[/import]