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.
 Add the Webstorage plugin to the layout and use it's "Set local value" action to store the array:
 Then you can use the array Load action to restore the saved array:
 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: