This local variable is to call this function maximum once per tick, but on future ticks, it is already set to 1. So its once all time...
It behaves like a static variable, why?
I do not understand that...
Develop games in your browser. Powerful, performant & highly capable.
Ok, I have a solution.
Even though I do not understand why the first was not.
This works...