Saving high scores
vincentW
Member Posts: 47
Hey,
I have set a high score attribute that is being saved everytime it gets changed or is being loaded. Throughout my game, the high score stays the same, so theres no problem. But, when I'm testing with an ad hoc and I close the game and delete it from the multitasking screen, the high score gets set back to 0. Is this normal with an ad hoc? If not, please let me know how to solve this.
I have set a high score attribute that is being saved everytime it gets changed or is being loaded. Throughout my game, the high score stays the same, so theres no problem. But, when I'm testing with an ad hoc and I close the game and delete it from the multitasking screen, the high score gets set back to 0. Is this normal with an ad hoc? If not, please let me know how to solve this.
Comments
Thats a crucial step!
Yes there's a display text actor to display the high score, and that one loads the attribute.
So that's not the problem.
Make sure the "key" is the same in both the save and load.
I personally prefer this to load/save attributes but each to their own...
Example- put it in a timer that says after .1 seconds LOAD attribute.
You can also try to make sure that your load actor (i believe you said its in a display actor) is one of the first things to load in the scene. If you look at your layers in the scene via the layer menu, the bottom most actor acts as the first load and then goes up the list.
If none of this works it may be a bug. I doubt it though. Perhaps you should share your code on here via screenshot. Good luck!