How do I prevent pathfinding objects from overlapping?

Get help using Construct 2

Post » Mon Mar 30, 2015 4:22 pm

Hi, what if I have 2 Arrows instead of 1 like in this video:
https://youtu.be/1Z9SCtQSB1o
and if I click somewhere they overlap when arriving.

"Object X overlaps Object X - Stop" doesn't work, because as soon as they overlap they wont move anymore. Any ideas?
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Mon Mar 30, 2015 8:31 pm

I figured out how to solve it: Giving it a Solid and Platform behaviour.
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Mon Mar 30, 2015 8:57 pm

Sprite overlap is something I have struggled with for a while. I have pulled it off several ways by checking overlap and angle of collision and then moving them apart or doing an On every tick-while-overlap move away x but you have to rerun any movement/control events or they stop working like you encountered.

Glad you were able to hack it with 2 behaviors. It would be nice if a behavior coder made a behavior that allowed us to make a sprite behave like its "solid" when it comes to overlap but not affect the physics Solid behavior.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
63
S
17
G
8
Posts: 629
Reputation: 9,269


Return to How do I....?

Who is online

Users browsing this forum: Janaina and 3 guests