Simple idea for highscore doesn't work, why?

Get help using Construct 2

Post » Sat Apr 04, 2015 11:03 pm

Hello,

I have 2 variables:
-Score
-Highscore

In the game when you kill an enemy the score inscrease of 100

Then I have a text showing the Score using "set-text to Score"

I added the variable "When Score > Highscore" => Set text2 to Score


This is working but when I restart the variable Score (so Score < Highscore) the Highscore doesn't keep the value, why?

How can I keep the Score value into the Highscore? Should I use a third variable? I don't get it :(

Any ideas? Please :p
B
5
Posts: 46
Reputation: 334

Post » Sat Apr 04, 2015 11:17 pm

"When Score > Highscore..set Highscore to Score... ?
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Sat Apr 04, 2015 11:27 pm

Every tick set highscore to text2.
When score > highscore: highscore = score

Pretty much what korbaach said.
B
5
Posts: 16
Reputation: 259

Post » Fri Aug 21, 2015 10:50 pm

thank you !!! :)
B
5
Posts: 46
Reputation: 334

Post » Sat Aug 22, 2015 12:04 am

it seem that

"When score > highscore: highscore = score"

is not working on the end of layout ???
B
45
S
16
G
8
Posts: 792
Reputation: 8,306


Return to How do I....?

Who is online

Users browsing this forum: armen1997, Syazanie Amirin, Yahoo [Bot] and 12 guests