Game score based on time does not stop at game over.

tcla75tcla75 Member Posts: 71
edited November -1 in Working with GS (Mac)
Hi all. I have the score set up in my game to increase the longer you last in the game but when the acto gets hit and game over comes up the score keeps on increasing.
In the screen below I tried to find a way to stop the score when the game was over but that rest the score and when I tried game score to + 0 that screwed up the game. I couldn't even get back into the actor. I did have an earlier fix by destroying this actor but when I went through the steps to save the score it didn't work.
So does anyone know how to stop the score on game over without destroying the actor?

image

Comments

  • anithmukanithmuk Member Posts: 235
    create a boolean attribute game.scoreincrease

    create a rule when game.scoreincrease is true every 0.01 seconds change attribute game.score to game.score+101

    create rule when game lives=0 change game.scoreincrease to 0
  • gazjmgazjm Member Posts: 578
    Reconfigure the rule to be as below, that should do it!

    If game lives > 0 then

    Every 0.01 gamescore = gamescore +xxx
  • tcla75tcla75 Member Posts: 71
    anithmuk and gazjm thank you. gazjm I tried your suggestion and it works perfectly.
  • gazjmgazjm Member Posts: 578
    no problem, had that issue myself on a previous game!
Sign In or Register to comment.