How do I save progress to the computer?

Ideally you want to get all your variables in a global structure variable (so it’s accessible from any scene) and save that to storage.

To do this, the structure variable will need to be parsed into a string and in JSON format. Luckily there’s a one-line action that does this.

Then to read it back, the JSON formatted string needs to be read in and parsed back into a variable. Again, there are a couple of actions that do this.

Here’s a simple example of how to read and write the data to storage.

1 Like