Map loading

ok thanks dude or girl whatever

I’m male btw…

Also, the next step would be this:

project.local_storage.setItem(“Saved data 1”, EqualToThis);

(change the Saved data 1 with the name of the saved data, and the EqualToThis with what the data should be equal to)

where do i put that? and how do you delete something on a different frame?

well delete or put something in a different frame i mean

Delete or put something on a frame that your not on… u really can’t do that, but u can set variables to let the project know that once u enter that frame something gets deleted

Also, put that line in the update script

just a quick check how do you use remove

obj.remove();

change obj with the objects name

ok thx dude

is there such function as frame?

Also, if u still need help with the save thing, here’s the last step, default script

Summary

project.something=project.local_storage.getItem(“saved data name”);

explain more plz

i meant like can you specify what frame that action executes?

Yes

This should help:

(link)

where do i put this? project.local_storage.setItem(“ Saved data 1 ”, EqualToThis );

update script

(Change the Saved data 1 with the name of the data,
and the EqualToThis with what it should be equal to)

give me an example


Here’s an example:

project.local_storage.setItem(“ Medal ”, Golden );


Here’s another one:

project.local_storage.setItem(“ Imposter ”, Red );


i meant an example project

pls be polite lol
btw i have none

I got an example

pick a color, it should save
My Project10-11-2020_8-37-59AM.wick (3.0 KB)

lets try to be practical.
First question is:
is it safe to save players progress on client side?
Usually not. You can do it if you trust your players or if you dont care about ppl messing with your game.
Trusting your players is a BIG error.
Saving progress on client side (local storage, cookies, a file…) open the gates for hacking.
Usually online games save progress on server side to avoid (or at least reduce) hacking. Wick is a tool to develop client side application.

have a look here for more variables saving in local storage or cookies projects if you are still interested:
https://forum.wickeditor.com/t/saving-preferences-to-cookies