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]