Save progress syatem

#1

Id like to make an ability to have 2 save slots wich store money and what items you have aswell name said save slot. And im in need of help

0 Likes

#2

use local web storage in javascript, its just that easy!

0 Likes

#3

Great suggestion @CoderKidYT!

@Tsake, here’s a link to a tutorial for localStorage, a basic system for storing information between sessions on websites.

https://www.w3schools.com/html/html5_webstorage.asp

You’ll be able to store information by using code similar to this.

`localStorage.thingIWantToStore = “Value of thing”.

There are a few ‘gotchas’ so have a look through the tutorial, and comment here with any questions on how it might apply in the Editor.

If I am able to today, I’ll try to make an example with save slots, but it will be super basic!

3 Likes

Anyone know how to use "saveData" and "loadData"?
#4

I made an example with your specifications.
However; the inventory won’t be able to load until the alpha editor receives the project.getObject() function (the inventory is saving though).
Save Data example.wick (7.9 KB)

1 Like