Web Storage Troubles

Get help using Construct 2

Post » Sat Feb 22, 2014 5:54 am

Hy,
this is driving me crazy...
I'm using 'WebStorage local', but it is not working, what am I doing wrong, thanks.

https://www.dropbox.com/s/4lh7fqzflm2s97w/jamFlappyBird.capx
B
43
S
6
Posts: 79
Reputation: 4,235

Post » Sat Feb 22, 2014 6:14 am

How is it not working?
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Post » Sat Feb 22, 2014 7:44 am

dznerpro wrote:Hy,
this is driving me crazy...
I'm using 'WebStorage local', but it is not working, what am I doing wrong, thanks.

https://www.dropbox.com/s/4lh7fqzflm2s97w/jamFlappyBird.capx

I don't have C2 on this computer,but I can help you if you tell me what you want to do.Save the highscore?Save the whole game?
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sat Feb 22, 2014 8:06 am

I know, your local key doesn't exist at first, so it's value is "", compared as number, it becomes "NaN", just do that and it'll be good:
Image
And for your menu:
Image
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Sat Feb 22, 2014 4:01 pm

I modified the code. I will test online, thanks @aphrodite
B
43
S
6
Posts: 79
Reputation: 4,235

Post » Thu Sep 04, 2014 5:39 am

Hi sorry @dznerpro but did you solve this?? can you please submit the capj file? i cant figure this out and would be really helpfull if you could. i try a lot and still dont work, maybe is bad code org . thanks
B
5
Posts: 1
Reputation: 234

Post » Wed Sep 17, 2014 7:29 pm

Hi quervo, I followed the post of aphordite and worked.
B
43
S
6
Posts: 79
Reputation: 4,235


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, marcoscodas, Yahoo [Bot] and 8 guests