Page 1 of 1

HP bar for each cloned actor?

PostPosted: Fri Nov 23, 2012 12:33 am
by Hblade
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

Re: HP bar for each cloned actor?

PostPosted: Fri Nov 23, 2012 12:43 am
by skydereign
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

Re: HP bar for each cloned actor?

PostPosted: Fri Nov 23, 2012 1:03 am
by Hblade
Ahh ok thanks