complicated hp problem

You must understand the Game Editor concepts, before post here.

complicated hp problem

Postby DarkParadox » Mon Jan 07, 2008 10:43 pm

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?
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: complicated hp problem

Postby Kalladdolf » Wed Jan 09, 2008 8:23 pm

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.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: complicated hp problem

Postby Bee-Ant » Wed Jan 09, 2008 9:10 pm

Is
Code: Select all
healthtext.textNumber=healthbar.animpos;
doesnt works?
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: complicated hp problem

Postby DarkParadox » Thu Jan 10, 2008 8:42 pm

no it dosn't bee ant, kall yours works! +1 score.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: complicated hp problem

Postby Bee-Ant » Fri Jan 11, 2008 7:50 am

diormeh wrote:no it dosn't bee ant, kall yours works! +1 score.

Ah...next time I'll give you works code... :mrgreen:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest