Creating a health bar for each enemy?

Get help using Construct 2

Post » Sun May 22, 2016 8:59 pm

I'll try to be quick and to account for the translation !

I have an enemy called " Zombie " with variable " HP = 100 " , and every 3 seconds it creates 1 "Zombie " in the scenario .
Each enemy comes with your life bar over your head with width = Zumbie.HP.
The problem here is that when you kill enemy instead of destroying the life bar of the dead enemy, destroys all life bars of other enemies alive , what I do :(
B
22
S
2
Posts: 43
Reputation: 972

Post » Sun May 22, 2016 9:06 pm

Put the zombie and the life bar in a container :) https://www.scirra.com/manual/150/containers
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 209
Reputation: 3,476

Post » Sun May 22, 2016 10:10 pm

Nice!!!It worked Perfect here! Thank you for your help.
B
22
S
2
Posts: 43
Reputation: 972


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests