So High Score 2 is nested in the else of High Score 1. High Score 3 is nested in the else of High Score 2. High Score 4 is nested in Else of High Score 3....
thanks JGary321!found out my mistake which is my 'high score' scene is after 'game over' scene...now change it to front and working d...thanks for replying
Comments
I don't know how to do that, because I am not so far in my development, but I will need it too and I will try to figure out.
At the end of each round do a check like this.
If game.High Score 1 < game.Current Score
Change game.High Score 1 to game.Current Score
*Else
*If game.High Score 2 < game.Current Score
*Change game.High Score 2 to game.Current Score
**Else
**If game.High Score 3 < game.Current Score
**Change game.High Score 3 to game.Current Score
***Else
***If game.High Score 4 < game.Current Score
***Change game.High Score 4 to game.Current Score
Etc...
So High Score 2 is nested in the else of High Score 1. High Score 3 is nested in the else of High Score 2. High Score 4 is nested in Else of High Score 3....
Understand?
If game.High Score 1 < game.Current Score
Change game.High Score 3 to game.High Score 2
Change game.High Score 2 to game.High Score 1
Change game.High Score 1 to game.Current Score
If they don't trigger in order for you, just wrap each in a timer like this:
If game.High Score 1 < game.Current Score
After: ".1"
Change game.High Score 3 to game.High Score 2
After: ".2"
Change game.High Score 2 to game.High Score 1
After: ".3"
Change game.High Score 1 to game.Current Score
Got it?
use the save attribute to save.. like this
save attribute
KEY" HighScore 1 game.attribute highscore1
then load them as well that way