Problem to load score attribute in android game
dragonking94
Member Posts: 27
I have two attributes, game.score and game.bestscore, when the rule: game.score > game.bestscore occurs, then the second rule started: change attribute game.bestscore to game.score.
When change scene, the best score is saved good, but when I exit the game and then launch the game again, the best score is restarted.
how to fix the problem?
Thanks and best regards
Comments
You create a SAVE attribute game.bestscore and a key when "game over". Then put a LOAD attribute in the beginning of your game. There are tutorials in Youtube for these.