High Score help...!

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 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

  • skippyskippy Member Posts: 106
    Oh don't use change attribute use constrain, worked for me :)
  • bronzebronze Member Posts: 22
    I'll try Skippy,

    Thanks
  • skippyskippy Member Posts: 106
    Sorry i had a quick look and it was the change attribute, mines sort of like this
    All conditions valid
    Rule when game.ends =1
    game.score > game.bestscore

    Change attribute game.bestscore to game.score

    Save attribute game.bestscore to key bestscore

    and then in my play button when i click to play again

    load attribute key bestscore

    hope this helps
  • skippyskippy Member Posts: 106
    One more thing are you trying it on the device as it won't work properly in the gamesalad viewer
    apparently :)
  • bronzebronze Member Posts: 22
    Hi Skippy,

    Thanks for the advice. It still wouldn't work correctly but as you've just mentioned, I am NOT trying it on the device. Been trying it for days in the gamesalad viewer.

    Thanks again for letting me know. I could of been here foe weeks!!

    Bronze.
Sign In or Register to comment.