Number Problem

Non-platform specific questions.

Number Problem

Postby Super Pieman » Mon Dec 03, 2007 5:09 pm

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Number Problem

Postby Fuzzy » Mon Dec 03, 2007 7:01 pm

Could you explain that a different way?
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Number Problem

Postby Super Pieman » Mon Dec 03, 2007 8:57 pm

display.PNG
display.PNG (2.29 KiB) Viewed 691 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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Number Problem

Postby Fuzzy » Tue Dec 04, 2007 12:35 am

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Number Problem

Postby Super Pieman » Tue Dec 04, 2007 1:48 am

oh thanks it works perfectly.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron