Reset score collected when hitting actor

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
Hi, so I have a score that you earn points for every second you hold the touch down in my game. But when I overlap with a enemy actor I want the score that I collected in whilst my finger was touched down to not add to my score total.

For example to score is going up. +1, +2, +3, +4 then I hit a enemy, I don't want the +4 points I just earn to add to the score.

Any one know how to do this?

Comments

  • DimensionGamesDimensionGames PRO Posts: 993
    Im not sure if this is what you meant but..:

    rule when actor collides with actor of type ......

    Change attribute game.score to gamescore - gamescore

    Obviously you won't want your overall score to change so name it something different to your game score.

    Another idea I have just had is do the same but instead of gamescore-gamescore do gamescore-score so it stays the same.

    Hope this helps :)
Sign In or Register to comment.