Issues with Families

Get help using Construct 2

Post » Sat Jan 18, 2014 10:07 pm

I've got a simple dynamic working when AI objects shoot at the player objects. The player can potential have more than one object so I've grouped all player characters into a family called "minions".

My problem comes when a bullet hits a minion. The event is

Bullet On Collision With Minions > Minions subtract bullet.damage from health.

The only problem is that when a bullet hits a minion it subtracts health from all minions on the map. I could create a event for the bullet colliding with each minion but that seems wasteful and not very efficient.
B
4
Posts: 4
Reputation: 233

Post » Sat Jan 18, 2014 10:24 pm

Should work. Sample:
minions.capx
ImageImageImage
B
71
S
21
G
230
Posts: 3,687
Reputation: 128,845

Post » Sun Jan 26, 2014 3:33 am

It does work now. Turns out I had;

Bullet On Collision With Minions > MinionA subtract bullet.damage from health.

and had forgot to change it.
B
4
Posts: 4
Reputation: 233


Return to How do I....?

Who is online

Users browsing this forum: Fradno and 17 guests