Where to save attributes? - How to test Key loading
dwibre
Member Posts: 192
I am trying to save and loading my score attribute using keys etc... All the tutorials and forums I have read say that you should save the attribute in the item that changes the score. However I have various items that change the score (coin collection changes score, killing enemies etc) Do I have to put the save score in all these actors?
My alternative is to put it in the display score box I have which just displays the score attribute. I have set it to save the attribute every 1 second.
Will this work?
Also is there any way to test this will it load attributes on the GS viewer?
I am concerned that I go though the process of releasing the game into the app store and basic things like high scores don't work?
My alternative is to put it in the display score box I have which just displays the score attribute. I have set it to save the attribute every 1 second.
Will this work?
Also is there any way to test this will it load attributes on the GS viewer?
I am concerned that I go though the process of releasing the game into the app store and basic things like high scores don't work?
Best Answer
-
tenrdrmer Posts: 9,934to test your saves and loads all you need to do is run the preview mode in the creator and then each time you click the little grey reload icon it is the same as completely closing the app and restarting on a device. If your saves and loads are working properly your scores will be saved. If everything that should be saving and loading resets to what ever the starting value was then you have and issue somewhere in your save/load system.
cheers
Answers