Help with saving high score
chosenonestudios
Member Posts: 1,714
I know this has been asked several thousand times, but I can't seem to find it
basically I have a game.score attribute and I add on to it with a timer, and then once you die, it stops it and displays it on the next scene...
then I just want to take that score and display it on the main menu, but I also want it to save and then if I get a better score I would like it to replace it..
any help would be greatly appreciated! Thanks in advance! If you don't feel like explaining it, if you could point me to a tutorial that would also be much appreciated:)
basically I have a game.score attribute and I add on to it with a timer, and then once you die, it stops it and displays it on the next scene...
then I just want to take that score and display it on the main menu, but I also want it to save and then if I get a better score I would like it to replace it..
any help would be greatly appreciated! Thanks in advance! If you don't feel like explaining it, if you could point me to a tutorial that would also be much appreciated:)
Comments
synthesis, not sure what you did, but thanks you too!
Alright that works perfectly, how would I save it, I don't know what I've been doing wrong, but I go to save it and load it, but it doesn't matter what score I get it always changes to the gam.score
Any suggestion? Thanks in advance!