where do i put this??? “project.p13 =project.local_storage.getItem(“b13”);”
default script
would u like me to make a “basic” example?
yeah sure ok
Here’s a clicker game, click the black box. Your high score should be saved.
My Project10-9-2020_7-54-38PM.wick (2.0 KB)
(took 5 minutes to make, so not perfect)
hmmm how do you use project.local_storage=window.localStorage; sorry if i’m asking too much
Nah, it’s ok (it kinda took me long to understand this)
that line just stores what’s stored on the project to the window’s storage
(that’s step one)
U don’t need to change anything in this one
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?
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)