Page 1 of 1
Hp bars, not normal ones...theres something hard to do
Posted:
Tue Mar 27, 2007 10:18 pm
by Kooldudese
umm, how do you make
Hp bars that follows numbers,
for example, when you hav a hp bar of 100 hp, there is a bar, and also a number either beside or on it, and when the hp goes down/up the number goes with it.
how do you do this?
help!
Posted:
Tue Mar 27, 2007 10:19 pm
by Kooldudese
a code, file, or explanation will do thx
Posted:
Wed Mar 28, 2007 3:01 am
by Fuzzy
Use a standard HP bar. Overtop of it, put a text actor. Make the text actor have the HP bar as its parent. In the draw event of the text actor, make text actors textNumber variable equal to the HP variable.
Posted:
Thu Mar 29, 2007 10:36 pm
by Kooldudese
yes, that is a way, but, making 100 slides isent that good, and plus im trying to make a game that when you lvl up you can make your hp up too, and when you get to lvls like 100 and get 1000+hp then i dont want to think about making 1000+ frames.
Posted:
Fri Mar 30, 2007 7:20 am
by Fuzzy
You dont need 1000 frames, or even 100. Use a canvas actor and draw the healthbar.
Posted:
Fri Mar 30, 2007 8:38 am
by Kodo
Fuzzy wrote:You dont need 1000 frames, or even 100. Use a canvas actor and draw the healthbar.
That's the best approach, but at the moment you'll find the bar glitchy at one end due to a bug in Game Editor. I think I read somewhere that Makslane has a fix for this due in the next version.