Arrays for Beginners

  • 221 favourites


Attached Files

The following files have been attached to this tutorial:



Download now 173.28 KB


Download now 174.16 KB


Download now 182.31 KB



30,486 visits, 109,702 views


Saving and Loading

If you want to store the contents of an array so that you can restore it the next time you load the game then you can save it to local storage. The Array.AsJSON expression will return the array in JSON format (a text-based format) which you can then store in local storage.

[11] Add the Webstorage plugin to the layout and use it's "Set local value" action to store the array:

[12] Then you can use the array Load action to restore the saved array:

[13] The Download action let's you download the array in JSON format as a text file. This is useful when creating level editors - you can add the files to your project and load them into arrays at the start of the layout.

The animals array in JSON format:



  • Order by
Want to leave a comment? Login or Register an account!