Trouble with high score?

Get help using Construct 2

Post » Tue Jul 08, 2014 6:53 pm

Message: amg314 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I just finished this tutorial https://www.scirra.com/tutorials/448/arcade-style-high-score

I did everything in it just like in the video, but have been having issues. At first, all I could get the score to show was NaN. I then wrapped the line under Web Storage in int() so it looks like this: (WebStorage.LocalValue(HighScore)).

However, it now only shows a zero and it never changes. Can anyone give me any hints here?
B
7
S
1
Posts: 17
Reputation: 466

Post » Tue Jul 08, 2014 7:17 pm

Could it have something to do with the fact that my project resets global variables to default whenever I click my "Try Again" button after my character dies?
B
7
S
1
Posts: 17
Reputation: 466

Post » Sat Jul 26, 2014 5:29 pm

Yes, you'll need to remove the "reset global variables". That's what worked for me.
B
5
Posts: 4
Reputation: 229

Post » Mon Dec 29, 2014 11:12 pm

Hi I have the same problem and I don't have any global var to rest and still the high score shows 0's
B
6
S
2
Posts: 20
Reputation: 548


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests