Incorrect Highscore

P373GamesP373Games Member Posts: 17
edited November -1 in Working with GS (Mac)
Hello, I am currently having a problem with the high score on my game. It is set up like this:

when game.score is greater than game.highscore constrain attribute game.highscore to game.score.

When i play my game it displays the score at the end or when you lose (which is correct). When i go back to the high score on the main page it is less than the score that was displayed at the end of the game. The highscore that is displayed is usually the score from the second to last level.

Any help would be great thanks!

P.S: the highscore does have a save load attribute

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    dont use constrain attribute, use change attribute. The problem is cause when you change the score to 0 the highscore will change back to 0 as well since its constantly being constrained to the score
  • P373GamesP373Games Member Posts: 17
    Thank you for replying,

    after i posted i was previewing the game and found that the highscore problem had to do with bullets killing enemies after the player had died. Since the change score to highscore thing was linked to the actor, after the player died it did not count the last couple points.
Sign In or Register to comment.