saving and loading

Introduction 
many games today has save and load 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. 

1. Single slot and single savefile. 
In single slot just use the snippets in design mode


2. Multiple save slots - single save file. 
Make all game attribute Array<Dynamic> or lists. Each index of each game attribute represents a save slot. 
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 as we discovered a way to reducce lag significantly via collision systems.  https://stencyl-nator.blogspot.com/p/multi-save-slots.html

3. Multiple save slots - one file per save 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. 

4. 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. We curently use this method for "Adventures of a Lardball" and future projects. 

No comments:

Post a Comment