I'm working on a timer mechanic and a strange thing is happening:
I want the timer always to show ".0" even if the value currently is 2 or any other full number. I wanted to solve this problem with this code, but whatever I try, it doesn't work...
If I replace it by some other full number, it works fine, but then it always shows the ".0", as the condition is always true:
Anybody got an idea on how to solve this problem?
I think that is not a problem with the modulo operator, instead is a rounding problem with the add 0.1.
Try: System| set timer to round(timer*10)/10
after your System| Add 0.1 to timer.
Develop games in your browser. Powerful, performant & highly capable.
Thanks! That was it!