I want to make distance meter. Now what I have is: reading x position of an object and placing this data into global variable. As a result I got distance in pixels. My problem is that construct shows massive number (example 404.3089748374) so it's 404 px and so much more.
Question: How to reduce that just to whole numbers (main part) and how to divide that by 5 for example.
System: Set global variable 'dis' to Sprite2.X
Text: Set text to global('dist')