How do I save a high score value with localstorage?

Get help using Construct 2

Post » Tue Nov 24, 2015 1:29 pm

Hi, i'm in version 206 and the Webstorage was deleted..

My game is similar that flappy birds. I want to save the best highscore in all games. I have the value "score" that show the current score. But, if "score" is greater than the besthighscore, i want to save this "score" in "highscore".
I already read the tutorials, but i don't found the solution..

Help? Thanks!
B
3
Posts: 6
Reputation: 187

Post » Tue Nov 24, 2015 1:31 pm

How come you didn't find the solution?

https://www.scirra.com/tutorials/1461/h ... age-plugin

This tutorial shows exactly how to use local storage..
It even has an example capx to download..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 24, 2015 1:48 pm

marcmnc wrote:Hi, i'm in version 206 and the Webstorage was deleted..

My game is similar that flappy birds. I want to save the best highscore in all games. I have the value "score" that show the current score. But, if "score" is greater than the besthighscore, i want to save this "score" in "highscore".
I already read the tutorials, but i don't found the solution..

Help? Thanks!


Webstorage has been deprecated for over 6 months. When you update, it's best to keep up with the release notes.

Also, r206 is from May - you should really update your version to at lease the latest stable, currently r216, available HERE.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
74
Posts: 5,140
Reputation: 52,685


Return to How do I....?

Who is online

Users browsing this forum: gamarros, imhotep22, Nimothar, senecaa, yuji567 and 6 guests