Map loading

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