So there's probably a simple fix for this, but I haven't been able to find one.
This bit will subtract 1 from "health" every tick. But how would I control the timing of it?
Say I only wanted to subtract 1 from "health" every second.
Develop games in your browser. Powerful, performant & highly capable.
just add another condition that says "Every 1 Seconds"
also, it will continue to count down after it gets down to zero - because it will still be less than or equal to 100...
(unless you have code somewhere else to end the game if it gets to zero.)