How do I add all but self to pathfinding obstacles

Get help using Construct 2

Post » Tue Oct 24, 2017 11:37 am

Hello again!

I have another problem...
I want my enemies to avoid themselves. Since my enemies make use of the pathfinding behavior I thought it would be a good idea to use custom obstacles and a regularly regeneration of the region around them.
(With the physics behavior I get some strange results btw)

When I add the enemies to the obstacles, all of them are added and they can't move at all anymore 'cause they are unable to get out of themselves (kinda funny right?)

The solution would be to only add the other enemies with respect to every single enemy.
So how can I add all other enemies but itself to the list of obstacles?

Thank you in advance!
B
10
S
2
Posts: 13
Reputation: 528

Post » Tue Oct 24, 2017 11:54 am

There was a similar post recently:
viewtopic.php?f=147&t=196849
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,386
Reputation: 84,399

Post » Tue Oct 24, 2017 12:21 pm

Awesome, that actually solved my problem :) Thank you!
(I really searched for that - not good enough... sry)
B
10
S
2
Posts: 13
Reputation: 528


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 14 guests