So i have a variable Time with a starting value of 30 and every 0.1 seconds it subtracts 0.1 and updates the text of a sprite font but there is a problem: every time the value hits an even number the text shows no decimals. I want the text to be like: 30.0 29.9 29.8 29.7 --> 29.1 29.0 Not like the way it is now: 30 29.9 29.8 29.7 --> 29.1 29
I have tried all kinds of solutions that i can think of using zeropad(), find(), left(), right() and so on but nothing works.
If someone have a confirmed working way to acheive this please share, it would be greatly appreciated!