How to reset score after player loses

HeyFriesHeyFries Member Posts: 78
edited November -1 in Working with GS (Mac)
What's the best way to have the score reset to 0 in a game of multiple levels after player loses life? Thanks :)

Comments

  • RHRH Member Posts: 1,079
    when player loses life change attribute game.score to 0
  • gazjmgazjm Member Posts: 578
    When the player loses a life, have a rule which says

    Change attribute score = 0
  • gazjmgazjm Member Posts: 578
    Damn, beaten by a matter of seconds!haha
  • HeyFriesHeyFries Member Posts: 78
    Thanks. It's there another option though, because in my game shows the score and also the highest score of the player. When I set the score to 0 it also sets the highest score to 0.
  • gazjmgazjm Member Posts: 578
    you must have a rule forcing the highest score to update to score all the time. you need to change it so as

    when score > highscore
    change highscore to score

    then when you reset score to 0, because it isn't higher than the previous recorded high score, it won't change it.
  • HeyFriesHeyFries Member Posts: 78
    It worked. Thanks a lot!! :)
Sign In or Register to comment.