How do I make objects collide with copies of itself

Get help using Construct 2

Post » Sun Nov 27, 2016 11:58 pm

Hello, I'm currently making a top-down shooter with enemies that chase after the player to kill him. I hit a problem when trying to make them chase after the player, the enemies just overlap each other, even if solid or physic behaviors are enabled. However they collide with the player strangely enough.

For making the enemies chase after the player I'm currently using this:

Every tick:
-Set Angle Toward (Player.X, Player.Y)
-Move Forward 1.5 pixels

Note: I used to have the Bullet Behavior instead of this for the enemy's movement but it didn't seem to make a difference. I also tried enabling bounce on collision with other solids in the Bullet Behavior settings but it's just made them bounce really stupidly and spazy off of each other which doesn't look very good.
Last edited by jnde016 on Mon Nov 28, 2016 5:11 am, edited 2 times in total.
B
9
S
2
Posts: 8
Reputation: 541

Post » Mon Nov 28, 2016 1:00 am

Obvious question, have you checked the collision box for the enemies?
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Mon Nov 28, 2016 2:18 am

jeffige wrote:Obvious question, have you checked the collision box for the enemies?
Uh yeah, of course. They're currently set as squares cause that's the shape of enemies atm. I doubt they have anything to do with the problem.

Like I said, they collide with the player just not each other.
B
9
S
2
Posts: 8
Reputation: 541

Post » Mon Nov 28, 2016 7:04 am

ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Tue Nov 29, 2016 12:38 am

Message: jnde016 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
alextro wrote:Use family if you can access it: how-do-i-stop-instances-of-the-same-sprite-from-overlapping_t184211

Thank you, you are awesome!
B
9
S
2
Posts: 8
Reputation: 541


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests