Hey guyz!
Back again in A8-forums, I have another question
![wink wink](/ubb7/images/graemlins/default_dark/wink.gif)
I think it is a kind of a noob-question...hehe...whatever
![grin grin](/ubb7/images/graemlins/default_dark/grin.gif)
digits(360, 10, "Leben: %.f", arial_font, 1, leben);
In the format-tag, here "Leben: %.f", the variable "leben" shall be shown as a round lot without decimal places. I have programmed that the game stops when the player's live comes to 0. But I've noticed that the variable can also be negative (in my case items are falling down and they have to be collected - the game stops at 0, but an item can still drop down. if that happens, the variable "leben" shows -1).
Is it possible, to change the format-tag in "digits" so that the variable cannot be shown negative? Or is it wiser to change it in some way within the code?
Hope you can help!
Greetz, Minamato