How does Clone Objects work?

Get help using Construct 2

Post » Fri Jul 10, 2015 4:27 pm

Hello Constructers,

I have a little question about how Construct works, so i can better understand :)
So, it's a little bit hard to describe for me in english.

I want to know how Spawned Objects work.
So if i Spawn a Enemy, and for each enemy a Health-Bar.

Now: The Enemy is Dead, so he will be destroyed. How do i know, what Health-Bar getting destroyed now?


Hope someone could explain me.

Regards
vendara
B
9
S
1
Posts: 50
Reputation: 650

Post » Fri Jul 10, 2015 4:33 pm

Use a Container so your Healthbar is created, picked, and destroyed automatically with the Enemy.
https://www.scirra.com/manual/150/containers
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Fri Jul 10, 2015 4:48 pm

blackhornet wrote:Use a Container so your Healthbar is created, picked, and destroyed automatically with the Enemy.
https://www.scirra.com/manual/150/containers


Never had to use Containers. But now i know what they are for.
Thank you very much!
B
9
S
1
Posts: 50
Reputation: 650


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Artcadev and 17 guests