Highest score problem...!

bronzebronze Member Posts: 22
edited November -1 in Working with GS (Mac)
Hi All.
I have followed instructions from the forum about creating a highest score page when my game ends. I have two integers - game score - high score and a change/ save attribute etc...

It sort of works except. When I have a highest score of say, 10 and I score zero, it saves the highest score as per instructions. BUT when I score less than 10, lets say 5 for instance. The highest score changes to 5 as does the Game score, and doesn't save as 10....?!

I've also published the game and it is the ONLY part of thegame that is not working. So even on the device the highest score doesn't work.

I've checked everything over and over and all looks correct.....I'm starting to pull my hair out!

Please help me from going bald...

Regards,

Bronze

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Ok, have a rule that says "If game score is greater or equal to high score"

    Then a constrain behaviour: Constrain high score to score

    Then just save when you need to (end of a level for example).

    Try it, let us know how you get on!

    Cheers,

    QS :D
  • bronzebronze Member Posts: 22
    Hi Sous chef,
    That worked great... Thanks...
    I now have almost the same problem as now it saves the highest score all the time... ! but only once..! If i play again it will only show the highest score from the first game..... Getting there, thanks for your help if you can advise some more...
    Bronze...
  • quantumsheepquantumsheep Member Posts: 8,188
    I'm glad that helped a bit - are you loading in your high score at the start as well?

    When are you saving the high score?

    Cheers,

    QS :D
  • bronzebronze Member Posts: 22
    Hi Sous chef,
    Sorry its been a while. Schools hols...
    I'm still having problems. I'm saving the high score at the 'game over' page only, on the same page as it loads.
    It will only save the first high score. I cannot get it to over-ride it if the next game has a higher score. It only displays the original..!!?
    Thanks,
    Bronze
Sign In or Register to comment.