Why isn't my highscore method working? :(
RH
Member Posts: 1,079
I have 5 highscore attributes, HS1, HS2, HS3, HS4, HS5. HS1 the best, HS5 the worst. I also have a score attribute and a the following rules on an actor that spawns at the end of the game.
When attribute game.score > game.HS1
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.HS2
after 0.3s Change attribute game.HS2 to game.HS1
after 0.4s Change attribute game.HS1 to game.score
When attribute game.score > game.HS2 and game.score<or=game.HS1
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.HS2
after 0.3s Change attribute game.HS2 to game.score
When attribute game.score > game.HS3 and game.score<or=game.HS2
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.score
When attribute game.score > game.HS4 and game.score<or=game.HS3
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.score
When attribute game.score > game.HS5 and game.score<or=game.HS4
Change attribute game.HS5 to game.score
After playing the game twice and getting scores of 100 followed by 80 I check the highscore page but HS1 HS2 HS3 HS4 & HS5 all said 80.
I know that is a lot to read but any help is much appreciated it's really bugging me
Thanks!
When attribute game.score > game.HS1
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.HS2
after 0.3s Change attribute game.HS2 to game.HS1
after 0.4s Change attribute game.HS1 to game.score
When attribute game.score > game.HS2 and game.score<or=game.HS1
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.HS2
after 0.3s Change attribute game.HS2 to game.score
When attribute game.score > game.HS3 and game.score<or=game.HS2
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.HS3
after 0.2s Change attribute game.HS3 to game.score
When attribute game.score > game.HS4 and game.score<or=game.HS3
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.score
When attribute game.score > game.HS5 and game.score<or=game.HS4
Change attribute game.HS5 to game.score
After playing the game twice and getting scores of 100 followed by 80 I check the highscore page but HS1 HS2 HS3 HS4 & HS5 all said 80.
I know that is a lot to read but any help is much appreciated it's really bugging me
Thanks!
Comments
change attribute game.highscore to game.score (insert constrain attribute instead)
You used "constrain attribute" in the last part of each rule?
ie: When attribute game.score > game.HS4 and game.score<or=game.HS3
Change attribute game.HS5 to game.HS4
after 0.1s Change attribute game.HS4 to game.score-------->> Put constrain attribute game.hs4 to game.score
And you did this for each one?