I have a variable that acts as a counter, and a variable that acts as a score. The counter runs continuously, and I wanted it to add 1 to the score variable after every 10 count. What would be the best way to do this.
- If Counter % 10 == 0 - Trigger Once While True -> Add 1 to Score
Counter % 10 will get the remainder of dividing by 10. so if its 10, 20, 30, etc. the result will be 0. Anything else will result in 1-9 and thus not being true. Also, you need the trigger once there so it doesn't do it every tick while it equals 0