Trouble with enemy killing

Get help using Construct 2

Post » Sun Sep 06, 2015 10:02 am

Hello, im currently looking at the top down shooter template in c2

When two instances of enemies are closeby and when I shoot, It seems that the bullets harm both the nearby enemies before destroying itself.
How to make the bullet only harm the enemy it hits first?
B
6
Posts: 10
Reputation: 267

Post » Sun Sep 06, 2015 11:18 am

When this condition is true:
Bullet -> On ovelapping with Enemy
There might be two enemies overlapping with it, and you hurt both of the in the actions.

You should pick one of those enemies, for example, add the following condition to the overlapping one:
Pick Top Enemy (It is in the Z order)
and now only the one will hirt which is on the top.

There are other picking tools also -> Pick nearest, Pick nth
B
10
S
2
G
1
Posts: 51
Reputation: 761


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests