Arrays for Beginners

  • 250 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



46,279 visits, 153,152 views



This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

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!
  • Hi, what's going on with second and other pages of this tutorial - it shows just an error...

  • Thank you very much.

    With new version we can change WebStorage plugin to LocalStorage plugin, And use LocalStorage On item "array_save_example" event for set animals when LocalStorage Get item "array_save_example" loaded

    1. btn loadArray on clicked > LocalStorage Get item "array_save_example"

    2. LocalStorage On item "array_save_example" get > animals Load from Json string LocalStorage.ItemValue

    • Thanks for trying to provide an update to the Webstorage reference. i'm totally lost from your update however. i'll have to find a more up to date tutorial.

  • Thanks for very good and important topic with detailed explanation

  • Best writing on arrays

  • Thank u, it helps a lot. 😁😁😁😬😬😬😬