HIGH SCORE SAVING
BaherJaberi
Member Posts: 30
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 ?
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
share how it works
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.