Why isn't my highscore method working? :(

RHRH Member Posts: 1,079
edited November -1 in Working with GS (Mac)
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!

Comments

  • butterbeanbutterbean Member Posts: 4,315
    Use "constrain attribute" instead of change attribute under:

    change attribute game.highscore to game.score (insert constrain attribute instead)
  • RHRH Member Posts: 1,079
    thanks, I've tried that but it didn't work,
  • butterbeanbutterbean Member Posts: 4,315
    Sorry, thought that might be the issue...

    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?
  • RHRH Member Posts: 1,079
    Sorry, I mis-understood, however I just tried what you suggested and it still didn't work. Thanks for helping though!
Sign In or Register to comment.