Trying to Pathfind...

Get help using Construct 2

Post » Wed May 22, 2013 11:36 pm

Before you yell at me, yes, I did read the documentation... Pathfinding Doc

In this test, I'm trying to move the player on mouse click around the object.

In test 1, I just sent pathfinding on the object and find a path on click, then move along the path when it is found. This results in the collision area overlapping each other (not colliding)

Demo Pathfinding 1
Demo Pathfinding 1 capx

In test 2, I added 8 directions behavior AND pathfinder. The result is the player getting stuck on the on the "wall" object..

Demo Pathfinding 2
Demo Pathfinding 2 capx

What am I doing wrong?
B
6
Posts: 35
Reputation: 370

Post » Thu May 23, 2013 2:43 am

So, what I have come to find out is that it appears the pathfinder does not take collision into consideration ON the object that is moving.... Anyway to fix this??
B
6
Posts: 35
Reputation: 370

Post » Thu May 23, 2013 4:43 am

Did you try adjusting your Cell Size and Cell Border?

B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Thu May 23, 2013 5:14 am

If I center the origin in the collision box, then set 3/4 the width into cell border, It works "most" of the time
B
6
Posts: 35
Reputation: 370


Return to How do I....?

Who is online

Users browsing this forum: Paradox and 4 guests