Reset score collected when hitting actor
Billyd1
Member Posts: 133
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?
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
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