HIGH SCORE SAVING

BaherJaberiBaherJaberi Member Posts: 30
edited November -1 in Working with GS (Mac)
hello friends..
just regarding the score and the high score. how i save the high score so if turn my application and come back to it.. i see my high score ?

Comments

  • RHRH Member Posts: 1,079
    Use the save and load attribute behaviours.
  • BaherJaberiBaherJaberi Member Posts: 30
    GREAT... thanks.. its working fine now :D
  • konpavloskonpavlos Member Posts: 17
    @BaherJaberi
    share how it works
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Here's how i do it?
    Have a score(real) attribute in the scene.
    Have another HighScore(real) global(game) attribute.
    What i do is whenever the scene is completed or end
    change HighScore to score
    save attribute HighScore with 'key' ,whatever name you wanna save as.
    Then on every new scene reset or new stage just load attribute HighScore with the saved key.
    This way scene reset only reset current score but not the highscore.
Sign In or Register to comment.