HP bar for each cloned actor?

Non-platform specific questions.

HP bar for each cloned actor?

Postby Hblade » Fri Nov 23, 2012 12:33 am

How would I create a small HP bar on each and every cloned enemy actor?

The game theme is a SHMUP but combined with RPG like elements
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: HP bar for each cloned actor?

Postby skydereign » Fri Nov 23, 2012 12:43 am

In the clones create actor, create the hp bar and parent it to the clone. In the hp's draw actor, you can reference the creator or parent's hp (I suggest creator, and parent has sometimes caused problems for me).
Code: Select all
animpos = creator.hp; // or whatever animpos setting you have
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HP bar for each cloned actor?

Postby Hblade » Fri Nov 23, 2012 1:03 am

Ahh ok thanks
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron