Hi guys, I need to manage a life system that starts from 5.0 for example and that the text is scaled like the photos in the example


I can manage it but without the .0 while I want that when the value is 2 or 3 there is the . next to it


can someone tell me how to do it please
You could probably do it with the RegEx (regular expression) extension but it’s early and that thing gives me a headache.
Another way would be to round the number to 1 place, convert it to a string and then if it doesn’t contain a decimal then append it with a zero.
I used a slider for testing. V is a number. Value is a string.
There are other solutions. This is a common issue. You can check the forum.
The letelter p in the last line is lower case. player Hp not playerHP. You also don’t need the VariableString() expression with the recent versions of GD.
ooh you’re right! it works now thanks