How do make the health bar always be 100 width no madder how much health you program your character to have?
here is the code on the char_hp
onClipEvent(enterFrame)
{
this._xscale=_root.char_hp;
if(_root.char_hp<=0)
_root.char_hp=0;
}
here is the code on the frame
stop();
char_hp=100;
energy_bar=400;
Thanks