Help with UID/ families

Get help using Construct 2

Post » Sat Jan 11, 2014 7:43 pm

Hello,

I know many people have asked this before but I can't seem to make it work. The idea is to have multiple enemies of the same kind that act individually but have the same behavior.

I have tried using the "for each" command and families but it either doesn't show the second enemy or it just makes both of them very buggy.

Here's the capx file(still can't post links yet):
mediafire[dot]com/download/0m70bebilul46i6/multiple_enemies.capx

If you know how to do this please either explain it or just check out the capx file and edit it.

Thank you very much! Tusskin2014-01-11 20:35:04
B
3
Posts: 6
Reputation: 187

Post » Sat Jan 11, 2014 11:28 pm

You have to associate a hitbox with a character, otherwise everything gets lumped together. Containers help here. To get the association right, the container item needs to be created dynamically, so I added another placement object, which then gets destroyed. There are other ways to do this. Also, use the Pin behaviour for position syncing.
multiple_enemies_containers_BHT.capx
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Jan 12, 2014 9:19 am

Oh wow this is perfect!

Thank you very much, I understand the container property much better now!
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests