how to make a LOWSCORE

BrynjeBamsenBrynjeBamsen Member Posts: 188
edited November -1 in Working with GS (Mac)
to make a highscore I take

If score is > highscore
Change highscore to score

But if i want make a lowscore (fastest time)
If score is < the highscore
change highscore to score

But my inital highscore is 0 until first score i registered?
which means i cant change my highscore because my score will always be bigger then 0

i feel like iam having a massive brainfart with this one... the solution is properly very simple. but i cant seem to get it right?

any suggestions?

Comments

  • steve86steve86 Member Posts: 806
    create an attribute for each lvl you have called lvl1Time, lvl2Time and so on. Then give them a big initial value like 1000 seconds or something like that. then create another attribute call playerTime. playerTime is going to be the attribute that actually measures the time it took the player to finish the level. On each level make a rule that says:

    When level is complete

    if lvl1time < playerTime.

    then

    lvl1time=playerTime.

    Then its really important to make a rule the resets playerTime to cero everytime you switch to the next level.

    Hope that helps
Sign In or Register to comment.