Save Game State
appeuphoria
Member Posts: 9
I am making a game for the iPhone. My game has various levels. I am wanting the player to have the option of starting at the last level they achieved so they do not have to start at the very beginning.
For example: Player passes level 1, 2, 3. When they load the game next time, they have the option to play fresh or start at level 4.
I am new to gamesalad, and would appreciate some simple help. I have tried the documentation, but some human interaction and help would be greatly appreciated.
Thanks!
For example: Player passes level 1, 2, 3. When they load the game next time, they have the option to play fresh or start at level 4.
I am new to gamesalad, and would appreciate some simple help. I have tried the documentation, but some human interaction and help would be greatly appreciated.
Thanks!
Comments
As you enter each level, you would want to change the number of the attribute "levels".
You would also need to set a timer in the same rule to after .1 seconds, save the "levels" attribute. So what you are doing is entering a level, changing the level number and then saving it.
Back on your menu, you would want to load the "levels" attribute every time the menu opens, so then you could have a button with the option of going to last level. This button would need rules like, if attribute "level" = 2, go to scene 2, if attribute "level" = 3, go to scene 3, etc.
Hope that helps. There are probably many other ways to do this. Good luck!
_______________
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
"Back on your menu, you would want to load the "levels" attribute every time the menu opens, so then you could have a button with the option of going to last level. This button would need rules like, if attribute "level" = 2, go to scene 2, if attribute "level" = 3, go to scene 3, etc."
Thanks again for your help!