Page 1 of 1

Number Problem

PostPosted: Mon Dec 03, 2007 5:09 pm
by Super Pieman
If you have a zero, and when you start the game, say it will start with a textNumber of 30. How do you make it so that the number starts on the left side of the zero instaed of going right.

Re: Number Problem

PostPosted: Mon Dec 03, 2007 7:01 pm
by Fuzzy
Could you explain that a different way?

Re: Number Problem

PostPosted: Mon Dec 03, 2007 8:57 pm
by Super Pieman
display.PNG
display.PNG (2.29 KiB) Viewed 693 times
okay. the top left is how i have it currently, when you start the game your ammo is 30/30 and it shows perfectly. Except when your ammo is below 10 it shows the number in the middle where i have put the 0. If i try to fix it by putting the zero on the right it looks like on the bottom right picture. How can i make it so that when the number goes below 10 it shows in the right instead of the middle. Understand this, i am sorry its a very complicated procedure to explain.

Re: Number Problem

PostPosted: Tue Dec 04, 2007 12:35 am
by Fuzzy
I understand perfectly now.

What you wish is to format the output. When you first create the actor and set the text, set it to 00(zero-zero) instead of 0(zero). This should help.

Re: Number Problem

PostPosted: Tue Dec 04, 2007 1:48 am
by Super Pieman
oh thanks it works perfectly.