Is there a way to set a minimal and maximal variable value?
You could use the clamp() expression.
every tick
set variable to clamp(variable, 0, 10)
Is there any better way after 4 years to do this than clamping every tick? :) Thanks
hrisnz You don't need to do this on every tick. Add clamp to the event where this variable is changed.
Develop games in your browser. Powerful, performant & highly capable.
Thank you :) good to hear