How do I save highscores in the new plugin LocalStorage?

Get help using Construct 2

Post » Wed Jun 24, 2015 1:12 am

I wore WebStorage, but dosen't exist :(. I want to create a HighScore in my game!! How can i do?
B
3
Posts: 8
Reputation: 191

Post » Wed Jun 24, 2015 3:23 am

Local Storage has a description in the manual.

https://www.scirra.com/manual/188/local-storage

It explains the steps for saving a score, and retrieving it again.
B
29
S
16
G
23
Posts: 68
Reputation: 13,723

Post » Wed Jun 24, 2015 5:40 am

FelipeOliveira wrote:I wore WebStorage, but dosen't exist :(. I want to create a HighScore in my game!! How can i do?


You can download this free example file. Just replace the 'playercoins' variable with 'HighScore' ;)

https://shatter-box.com/?p=11326

If you want to save more than one variable (via an array) in the LocalStorage I recommend you my LocalStorage example here: https://www.scirra.com/store/royalty-free-game-templates/game-template-8-local-storage-973

Regards
Andreas
Image Image iTunes: Match3 | Google Play: Match3
B
98
S
33
G
30
Posts: 1,117
Reputation: 27,781

Post » Fri Jun 26, 2015 1:03 pm

Message: Mousha is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
terrancd wrote:Local Storage has a description in the manual.It explains the steps for saving a score, and retrieving it again.



I still don't understand the tutorial. Can you explain it with pictures or a video?
B
3
Posts: 1
Reputation: 177

Post » Sat Jun 27, 2015 2:51 pm

Mousha wrote:I still don't understand the tutorial. Can you explain it with pictures or a video?


I'll see what I can put together. It'll have lots of pictures ; - )
B
29
S
16
G
23
Posts: 68
Reputation: 13,723


Post » Wed Jul 01, 2015 3:35 am

I threw this LocalStorage tutorial together. http://javajdk.net/tutorial/localstorag ... nstruct-2/
Last edited by terrancd on Wed Jul 01, 2015 3:41 am, edited 1 time in total.
B
29
S
16
G
23
Posts: 68
Reputation: 13,723

Post » Wed Jul 01, 2015 3:38 am

Lordshiva1948 wrote:terrancd try this link


Ah. You've got the highscores capx happening. That ought to be worth a look.
B
29
S
16
G
23
Posts: 68
Reputation: 13,723


Return to How do I....?

Who is online

Users browsing this forum: plinkie, Yahoo [Bot] and 20 guests