whats the best way to make a "is a less than" Highscore
Hi,
i making a game where the highscore is the best Time.
what i have so far, at the end it change the time to game.timewin
than if game.timewin is less than game.timehigh save game.timewin
but game.timehigh is at the beginning 0 so have changed the game.high to 10000 , and seems to be working.
but dont know if this is the best way to do it or is there a better way ?
i making a game where the highscore is the best Time.
what i have so far, at the end it change the time to game.timewin
than if game.timewin is less than game.timehigh save game.timewin
but game.timehigh is at the beginning 0 so have changed the game.high to 10000 , and seems to be working.
but dont know if this is the best way to do it or is there a better way ?
Answers
game.actualtime
game.besttime
At the end of level:
If game.actualtime < game.besttime
game.besttime = game.actualtime
Save game.besttime
Before start the level:
Load game.besttime
In this way the time to be beat always will be the game.besttime