High score problems

Get help using Construct 2

Post » Mon Dec 29, 2014 11:17 pm

Message: Cazbaranimations is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Hi all can someone please help me I just finished this tutorial

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. I have taken off the rest global var's when I restart the layout and still have no High Score.

Please can someone help many thanks.
B
6
S
2
Posts: 20
Reputation: 548

Post » Tue Dec 30, 2014 9:19 am

First you got to store that variable in webstorage (i mean your score variable)
then you have to compare it with high score
if it's higher than high score make changes to your high score text(i mean update it with your new score)
else it remains same.
B
9
S
1
Posts: 61
Reputation: 584


Post » Tue Dec 30, 2014 2:57 pm

Check this:

highscore.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 664
Reputation: 3,855

Post » Tue Dec 30, 2014 10:01 pm

Thanks guys got it working at last.
B
6
S
2
Posts: 20
Reputation: 548


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests