How do I display speed UI number of digits?

Get help using Construct 2

Post » Thu Dec 29, 2016 7:00 am

I've made a quick Text UI using Every tick-> Set text to: "Speed: " & Player.Car.Speed but It brings numbers with many decimals ex: Speed is 123.4567889. But If I want to display just speed 123 and when it transforms to speed 124, I want no decimals displayed. How can I do that?

And let's say when it goes from speed 110 to speed 62 let's say, I don't want it do be displayed as 062 neither.
B
10
S
1
Posts: 6
Reputation: 462

Post » Thu Dec 29, 2016 7:03 am

round(Player.Car.Speed)
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Thu Dec 29, 2016 7:08 am

Thanks a lot!
B
10
S
1
Posts: 6
Reputation: 462


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests