Saving High Score
razzsoft
Member Posts: 38
Hi All,
Is there a way of saving the high score in a game so that next time the game is loaded it will display the high score list.
Regards,
cabcom
Is there a way of saving the high score in a game so that next time the game is loaded it will display the high score list.
Regards,
cabcom
Comments
There is a video tutorial on youtube that might help you with this, here is the link:
hope it does what you are looking for.
I've looked at this tutorial but cann't see that it saves the high score if the app is turned off.
I'm trying to find a way to save the highscore so when you startup the game again it will still display it.
Thanks for your reply.
I must be missing something here because when I shutdown the game(by pressing round button on bottom on iphone) and then opening the game up again the high score is reset to 0.
I need to save the high score to the ram of the iphone somehow I feel.
So when you have your rule that is something like this;
If game.current score > game.high score
change attribute game.high score to game.current score
SAVE attribute game.highscore and give it a custome name. i.e. highscore
Then on your highscore page that displays high score, within that actor tell it to load attribute game.high score with your custom name. i.e. highscore
Worked it out now, wasn't working in the GS preview but works when published and run on the iphone.
You can only test saving and loading attributes on a device as a published app.