Save and restore spawned objects

Hello,

I have a bunch of stars (like 20-30 of them) being spawned on screen using a timer and display objects. When I press the home button and come back to the game, it restarts. I would like to save and restore the state.
I have looked at the various ways of saving to a files and loading but in this case I don’t know what to save.

My question is, do I have to individually store information about every star? If so, how can I grab the names and x/y coordinate of each star?

Right now, I am using this in a function:

star = display.newImageRect()

and a timer to run it at an interval so as far as the object name goes, there is only “star” but a whole bunch of them on screen.

Any help would be appreciated.
Thanks!
[import]uid: 39031 topic_id: 13008 reply_id: 313008[/import]

to start the game again where it left off when a user exits the app, use

  
 iphone =  
 {  
 plist =  
 {  
 UIApplicationExitsOnSuspend = false  
  
 }  
 }  
  

in your build.settings file [import]uid: 24641 topic_id: 13008 reply_id: 47759[/import]

Wow, can’t get any easier than that, can it?
Thanks! [import]uid: 39031 topic_id: 13008 reply_id: 47792[/import]

I am also interested in this. Is there a way to test this in the simulator? How would I also pause the game ( I do have my own pause function built in) and then present the user with a “resume” alert when they back to the game?

Thanks! [import]uid: 8139 topic_id: 13008 reply_id: 51894[/import]