How do I make this work?

Get help using Construct 2

Post » Tue Oct 13, 2015 8:57 am

Hello, I wanted to do the HighScore in my game, but I have a big problem... When i reach 0 poits the HS stays same, but when i reach lower score, it sets the HS to that value for exaple: I reached 10, but afterwards i reached only 5, but It sets the HS to the value of 5.
I will be glad for every help! :)

Here is the Event Sheet: http://uloz.to/xqYe9rCz/help-png
B
10
S
1
Posts: 42
Reputation: 620

Post » Tue Oct 13, 2015 9:47 am

You would be best posting your .capx.

Do you make sure to check that your current score is > highscore before setting the new highscore and saving it?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,422
Reputation: 59,530

Post » Tue Oct 13, 2015 9:52 am

With only these events to go by..

You are setting a text to highscore, but not the variable highscore to which you check the score..

I assume the variable highscore stays 0 so Body will always be higher than the variable Higscore and as such is saved..
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 Oct 13, 2015 10:30 am

Thanks for help! :) I managed to keep the HS. :) But now i have another problem.... :D I need to refresh the layout to see new highscore.... Do you know how to refresh the score as soon as the player dies? :)
B
10
S
1
Posts: 42
Reputation: 620

Post » Tue Oct 13, 2015 9:29 pm

Problem solved! :) Thanks for help!
B
10
S
1
Posts: 42
Reputation: 620


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dand, tinhofiel and 30 guests