High Score Not Showing

Get help using Construct 2

Post » Mon Feb 24, 2014 11:24 pm

I'm having problems with getting my high score showing on another layout.

Global number HighScore = 0
Global number Score = 0

Under my "scoring" section I have:
System|Score > HighScore|WebStorage|Set local key "HighScore" to Score

Now under my "Dead" layout/events I have:
System|On start of layout|System|Create object Text(Text Field for highscore) on layer 0 at(18,455)
Just under that:
Text|Set text to HighScore

Now when I play the game and die the highscore does not show, However when I click "try again" button and go back to the main layout and play again then die the highscore shows the last highscore.
It's not updating my "current" highscore upon first play..
How do I go about fixing that?
B
7
S
1
Posts: 12
Reputation: 571

Post » Mon Feb 24, 2014 11:48 pm

Here is a working logic.
Don't forget to set int or it won't show on mobiles.

Image
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Tue Feb 25, 2014 12:03 am

Ah ha! Thank you very much vagaev, That fixed everything!
B
7
S
1
Posts: 12
Reputation: 571


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, SashikLV, unxcellent and 7 guests