Forum rules - please read before posting.

Question about Auto-saving on iOS

edited October 2018 in Technical Q&A
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

  • The Autosave will always be placed in save ID 0, so Is Slot Empty would be the safer option.  Number Of Save Games will only work if no other save slots are written to.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.