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
122
S
33
G
53
Posts: 1,904
Reputation: 39,754

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
122
S
33
G
53
Posts: 1,904
Reputation: 39,754

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
415
S
247
G
92
Posts: 25,281
Reputation: 200,831

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
122
S
33
G
53
Posts: 1,904
Reputation: 39,754

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
52
S
16
G
7
Posts: 795
Reputation: 12,870


Return to How do I....?

Who is online

Users browsing this forum: Steveanderly, visionarybeast and 8 guests