Making racing game, made gui with speed but shows to like 10 dp
How can I convert car speed to integer?
Screenie encase you don't understand problem
Round(value) - Rounds value to its nearest whole number, eg. Round(6.8) gives 7
from scirra.com/tutorials/77/native-expressions-in-construct-2
Develop games in your browser. Powerful, performant & highly capable.
augmento Thanks
I just had to wrap a round around my car speed like this:
"Speed: " & round(car.Car.Speed/10) & "MPH"