Customize Game Timer

Hi,
I have a simple game I made in blender, which uses texts which is copied to ]a game property as a timer. It times okay but it shows to the millionth of a second. Is there a way I could change it so that It would only show to the tenth of a second?
I have attached a .blend file which is not my game, but uses the same timer setup as the one I have explained.
Thank you,
Sam

Attachments

scoreText.blend (394 KB)

A) copy the timer value to another property which will be formatted and shown

B) use Python to create a formatted string <- simpler solution

I’m sorry.
I am very new to blender and I don’t know how to do either of those things.
Would you please tell me how to?
Thank you,
Sam

I think your approach is correct. But the “Text” property copies the complete value (incl. type) rather than converting it to the set type.

Luckily this happens with normal game properties. Therefore you can copy the float value of the “timer” property to an integer property “seconds” (loosing the fractions on copying) and you can copy this one to the “Text” property, which will preserve the integer format.


This even enables you to do some value checks e.g. if seconds = 3

Thanks a lot!
It worked!
Sam