Highscore Saving Problem
for some reason my highscore isnt saving on my game, it worked fine on my previous game, and ive just copied over the stuff i used last time but obviously changed it to make it relevant, the only difference is, my new game is about getting the lowest score, not the highest.
everytime i play the game, it always saves the highscore as 0 when say for example my score was actually 50. i thought i could tackle this by making the highscore start at 9999, and say if its equal to 9999, display N/A to show the player doesnt have a highscore yet, then once they hit a score under 9999 which is 100% impossible not to, change the highscore to the players score.
but for some reason everytime its still displaying the highscore as 0. i am saving the attribute and loading it, yet still get this, any ideas? is there something else im supposed to be doing when making a backwards highscore?
thanks
everytime i play the game, it always saves the highscore as 0 when say for example my score was actually 50. i thought i could tackle this by making the highscore start at 9999, and say if its equal to 9999, display N/A to show the player doesnt have a highscore yet, then once they hit a score under 9999 which is 100% impossible not to, change the highscore to the players score.
but for some reason everytime its still displaying the highscore as 0. i am saving the attribute and loading it, yet still get this, any ideas? is there something else im supposed to be doing when making a backwards highscore?
thanks
Comments
Highscore Actor:
Load attribute
Key: Hi - game.Highscore
Display Text:
game.Highscore
End Score Actor:
Rule
If game.End Score is lower than game.Highscore
Change attribute
game.Highscore to game.End Score
Save attribute
Key: Hi - game.Highscore
but when it goes back to the menu, the highscore still hasnt changed.
FYI: Yes its supposed to be lower than, objective is to get the lowest time/score. The highscore starts at 99999, but displays as N/A when the value is 99999, and will display the player highscore when its lower than 99998 which will always happen.
however after every play it still says N/A, when means the highscore isnt changing from its original value, rather not saving, or not loading...