Page 1 of 1

complicated hp problem

PostPosted: Mon Jan 07, 2008 10:43 pm
by DarkParadox
ok, im making a health bar and health text for a menu;
the health bar has 15 frames i want for the first frame
the text will equal 15, and on the last frame it will equal
1, what do i do?

Re: complicated hp problem

PostPosted: Wed Jan 09, 2008 8:23 pm
by Kalladdolf
Code: Select all
healthtext.textNumber = (healthbar.animpos -15) * -1;

try that, I may have made a mistake in the code, but I think it works =D
"healthtext" in this case his you healthtext actor and
"healthbar" is your healthbar actor.

Re: complicated hp problem

PostPosted: Wed Jan 09, 2008 9:10 pm
by Bee-Ant
Is
Code: Select all
healthtext.textNumber=healthbar.animpos;
doesnt works?

Re: complicated hp problem

PostPosted: Thu Jan 10, 2008 8:42 pm
by DarkParadox
no it dosn't bee ant, kall yours works! +1 score.

Re: complicated hp problem

PostPosted: Fri Jan 11, 2008 7:50 am
by Bee-Ant
diormeh wrote:no it dosn't bee ant, kall yours works! +1 score.

Ah...next time I'll give you works code... :mrgreen: