Problem using MOD to turn on shield every 100 points
I want to add a shield to my actor after every 100 points. I thought I would be able to use the Mod function:
Shield Active = Game.Score%100
If ShieldActive = 0 then create Shield actor
But the problem is that the Game score does not go up in single digit increments - while some targets have 1 point some of my targets have 5 or 10 points, so the score sometimes does not fall on 100 exactly. It could jump from 98 to 108 without hitting 100 so the mod will not be 0 and the shield will not activate. Ideas most welcome!
Shield Active = Game.Score%100
If ShieldActive = 0 then create Shield actor
But the problem is that the Game score does not go up in single digit increments - while some targets have 1 point some of my targets have 5 or 10 points, so the score sometimes does not fall on 100 exactly. It could jump from 98 to 108 without hitting 100 so the mod will not be 0 and the shield will not activate. Ideas most welcome!
Comments
-Josh
After 0.1s
Game Score +1
After 0.2s
Game score +1
etc...
Thanks TSB - It works perfectly!