How do I Make 'Car' Speed Integer

Get help using Construct 2

Post » Tue Jan 27, 2015 9:08 pm

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 :)
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 8
Reputation: 193

Post » Tue Jan 27, 2015 9:20 pm

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
B
5
Posts: 23
Reputation: 317

Post » Tue Jan 27, 2015 9:30 pm

@augmento Thanks

I just had to wrap a round around ;) my car speed like this:
"Speed: " & round(car.Car.Speed/10) & "MPH"
B
3
Posts: 8
Reputation: 193


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest