Need someone who can fix localstorage

Looking to build a team or have a job to offer?

Post » Wed Dec 16, 2015 10:26 am

Hello,

I'm making a game and every time I click on a white circle it will substract 1 from the 100k.
The mission is to click 100k times on the white circle and end with 0 points.
But the variable ("clicks" is my variable) must be saved to go further if you start up the app again.
I tried it with LocalStorage but it doesn't seems to work... (I'am not good with this things).
Can someone please input the localstorage events so I can work further?
(the variable highscore can be removed)
I hope someone can fix this for me.
Here is the link: http://jmp.sh/UpmEety

Kind regards,

Niek Biesterbos,
B
6
S
2
Posts: 114
Reputation: 874

Post » Wed Dec 16, 2015 2:26 pm

In what way Localstorage not working ? are you saving or fetching every click ?

I wud say don't store/ retrieve on every click, that might be issue with your game, say give try after every 10 click.
Image
B
45
S
11
G
1
Posts: 252
Reputation: 4,197

Post » Wed Dec 16, 2015 2:38 pm

@Socialpelgrum oke, I will try😉
B
6
S
2
Posts: 114
Reputation: 874

Post » Wed Dec 16, 2015 4:05 pm

@Niek

Since you decided to ignore my request regarding multi-posting, I have deleted your duplicate post myself.

Don't ignore me, please.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
78
Posts: 5,200
Reputation: 54,807

Post » Wed Dec 16, 2015 4:08 pm

@Zenox98 Oh sorry, I read over it
B
6
S
2
Posts: 114
Reputation: 874


Return to Job Offers and Team Requests

Who is online

Users browsing this forum: italoxf1 and 0 guests