Hi all,
Looking for some maths help.
I've got a game with a digital speedo (sprite font) that runs from a global variable.
This variable is updated with the following every tick: playercontrolbox.Car.Speed / 3
This give a rough real world speed, so if car is travelling at 100px p/s speedo shows 33.333333
Is there any formula I can use so that the variable only updates with whole numbers?
Or is there a way to restrict the speedo (sprite font): Set text to Speed so it ignores the .333333?
Thanks for any help
Alex