need help with webstorage

Get help using Construct 2

Post » Mon Jul 02, 2012 12:09 pm

Hello!, i want to ask you whether these events are correct?

I ask because my save and load dont work.
if you have any tips please post
Regards
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Mon Jul 02, 2012 12:13 pm

maybe helps this:

http://www.scirra.com/forum/topic53467.htmljelmer112012-07-02 12:13:50
B
6
Posts: 17
Reputation: 448

Post » Mon Jul 02, 2012 12:28 pm

i read tutorials before i create save and load system. My game have events from tutorials
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Mon Jul 02, 2012 12:41 pm

Your 'save' button always saves the text "level" to webstorage. That's not very useful, because it doesn't save your progress, just the string "level". You probably meant to save level (without double quotes) to refer to the variable.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Mon Jul 02, 2012 12:50 pm

'level' is global variable, so when global variable is x, x levels are unlocked. So i want just save and load this numbers, what i must do ?
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Mon Jul 02, 2012 1:06 pm

i didn't use webstorage yet but i think ashley want to say use level instead of "level"

"level" mean it always saves the word "level". but level it will be for the global , take off the ""
B
45
S
15
G
6
Posts: 795
Reputation: 11,935


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, michaelverdi and 18 guests