How to save 2 scores as HighScore?

Hi there.
Basically I was wondering if anyone knows how I can save 2 added scores as highscore ?

so for example if I have:

1) Display text behaviour show: ""..floor (game.score+game.coins) which will give me a total of 1000 at the end of the game.
How do I save the total 1000 as the highscore so I can save it and load it later when the person plays the game again. And also since is the highscore, every time the person beats the previous highscore, the previous highscore changes to the recent higher highscore.

Any genius on here can help me solve that?

Best Answer

  • JfranJfran Posts: 10
    Accepted Answer
    constrain attribute "game.totalscore" to "game.score" + "game.coins"
    Rule:
    if "game.totalscore" > "game.highscore" then change attribute "game.highscore" to "game.totalscore"

Answers

Sign In or Register to comment.