HighScore Upload

BreezeonholdBreezeonhold Member Posts: 187
edited November -1 in Working with GS (Mac)
So I uploaded my game on my ipod touch(adhoc) and everything worked GREAT; but then I turned my ipod touch off, and turned back on to see if my high score stayed and it didn't went back to 0...

I have 2 attributes. Score, and High Score. However the number system work great so don't worry about score.

I told the game to save attribute "high score" and then load high score both on the same actor. (Also the load attribute is on the first scene if that matters)

What did I do wrong?? Why does the high score go back to 0 when I turn off my ipod touch and load up the app again? If someone could give me their email I'll send you the game for you to check out.

Thanks

Comments

  • EastboundEastbound Member, BASIC Posts: 1,074
    Are you making sure you set highscore to ever equal score? Because if you are just loading and saving highscore without ever changing it, it is going to be 0.

    Make sure you check that if highscore < score, you set the highscore equal to score. THEN save.
  • quantumsheepquantumsheep Member Posts: 8,188
    Or as Butterbean put it, if score > highscore, constrain highscore to score.

    Then save :D

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • BreezeonholdBreezeonhold Member Posts: 187
    Wow thanks Eastbound and quantumsheep for helping me, where can I send the money for your guys help today haha jp I'm broke :D

    Everytime I ask a question here I feel so stupid after getting a reply.

    Thanks,

    Ben
  • quantumsheepquantumsheep Member Posts: 8,188
    Breezeonhold said:

    Everytime I ask a question here I feel so stupid after getting a reply.

    You really shouldn't feel like that. Now you know something new! Cool! At some point I'm sure you'll help someone else if this comes up again!

    It's all good :D

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.