In my iOS game I use the auto-save action regularly to make sure the player can continue the game where they left off if they force quit the app or restart their device. In that instance the game starts at my Scene 0. That scene has a button named "PLAY" which I want to be smart enough to know if the game should resume where left off or start a new game (if the user hasn't played before)
So the actionscipt on the "PLAY" button is (((See screenshot below))):
Save-Check, Check to make: Number of Save Games (including Auto-Save) is More than 0.
If true: Save or Load, Method: Load Game, Save to load: Autosave
If false: Engine, End Game, Command: Restart Game, Scene to restart to:"Tutorial"
Is this the best way to accomplish this?
Or should I instead use something like this for the actionscript on the "PLAY" button?:
Save-Check-Is Slot Empty-Save ID:0
I've included a screen capture here:
Comments