saving and loading

Introduction 
many games today has save and lad games so that player can complete the game in multiple sessions. This feature is important for games that is large and take many hours to finish. 

There are many ways to do save game. 

In single slot just use the snippets in design mode
also true for 1 file for multiple slots back in our attempts to make a game before we quit (because it tends to be lag) then we return to Stencyl in late 2021. Make all game attribute Array<Dynamic> or lists. Each nindex of each game attribute represents a save slot. 

Multiple save slots - one file per slot. This method requires some codes. If you insert the save game or load game snippet, then tune to Preview code then you will see the default save name is mySave. The code is needed to change that save name. 

Multiple save slot - many files each save slot. This method requires developers to skip the Stencyl save system altogether including game attributes.  Custom code is required. 

No comments:

Post a Comment