Stencyl-nator
topics related to stencyl and tutorial
this site is not ready yet, official tutorial:
system: multi-save
flash demo: click on the flash demo to interact. there are 2 different save slots. each save slot uses 2 buttons. this flash file has only one actor type and one game attribute used.
References::: the load and save button in one actor type


the scene



the Stencyl save system:
the save snippet and load snippet can be found in Game > save/load
the code for the save snippet:
*/==============================
saveGame("mySave",function(success:Bool):Void
{
});
==========================
​
the code for the load snippet:
loadGame("mySave",function(success:Bool):Void
{
});
=========================
​
however the "mySave" changed into other names and the save load system still works but different address. allowing the flash to have more than one save file.
​
if error occurs::: check that the ";" is placed at the end of these commands.
if it the load system does not work properly. make sure the save address is the same as load address.