How: prevent overlapping enemy horde

Get help using Construct 2

Post » Mon Sep 23, 2013 5:51 am

What collisions are enabled and solid is applied to player and enemy, the horde of enemies collide and push the player, but the horde overlap each other. How do I prevent this?
Check out my games on Google Play:

BEAST ATTACK (960,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
50
S
15
G
2
Posts: 427
Reputation: 5,164

Post » Mon Sep 23, 2013 1:59 pm

The fix you want is in this thread
B
45
S
15
G
73
Posts: 2,005
Reputation: 43,392

Post » Mon Sep 23, 2013 3:57 pm

Also, the reason setting them to solid does not work with pathfinding is that the plugin cannot handle moving objects, so when the object is first spawned, unless the collision map is updated, they will only treat the very first spot they exist in as a place to avoid.

The only fix is that "push out solids" "Custom Movement" behavior, which is a temporary fix while we wait for the developers to make the pathfinding pluging useful when anything at all is moving.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,816

Post » Tue Sep 24, 2013 5:18 am

I did the custom behavior which kinda works, but they teleport cause they squeeze in too hard.
Check out my games on Google Play:

BEAST ATTACK (960,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
50
S
15
G
2
Posts: 427
Reputation: 5,164

Post » Fri Apr 04, 2014 2:29 am

I Don't know if anyone is still looking for a solution, but I found a quick fix on accident.

If you are using pathfinder and are suffering from the overlap or stacking effect... Add the 8Direction behavior to your enemy and set the speed, accel, and decel to the same values of the pathfainder behavior . Set default controls to no, and initial state enabled. Depending on the type of game you are making you can set the directions and angle accordingly.

For what ever reason this seems to work. With no teleporting.
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,944

Post » Fri Apr 08, 2016 11:58 am

HI,
Topic Is Old, but your solution do not work for me,

any idea?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Fri Apr 08, 2016 2:42 pm

@mostafanastary


Try this, needs some polishing from when they are more... try using arrows to move Download Zombie Issues -01
B
70
S
20
G
67
Posts: 1,314
Reputation: 42,301

Post » Fri Apr 08, 2016 2:54 pm

@gamecorpstudio

for pathfinding , i do not want to use bullet behavior,

this is not good for me

tahnks
B
10
S
3
Posts: 180
Reputation: 1,212


Return to How do I....?

Who is online

Users browsing this forum: JarkeyBacon and 4 guests