I want to have a text counter where there will always be 3digits
So it will be like this:
100
099
098 and so on..
Anyone got an idea and/or example of how to do this?
Develop games in your browser. Powerful, performant & highly capable.
Zeropad is what you need. Format is zeropad(number,digits)
Thanks for the help!
Could someone maybe create an example?
When you set your text in event sheet :
myText : Set text to zeropad(myVariable, 3)
Wow, that's amazing. I'd been making a whole slew of actions to add zeros, didn't know there was a function to do it haha.
Excellent stuff. <img src="smileys/smiley32.gif" border="0" align="middle" />
Anyone that might provide a capx?
http://www.johnnysix.net/games/ZeroPad.CapX
Thank you!
_Thank you!
____________________________________________________
mmoggg.de