Pathfinding behavior does not work as expected

Bugs will be moved here once resolved.

Post » Tue Jul 02, 2013 2:29 pm

Link to .capx file (required!):

Steps to reproduce:
1. check [View]>>Snap to grid and set grid width and height to 32
2. create a 32x32 sprite object w/ solid behavior
3. create another 32x32 sprite w/ Pathfinding behavior then set Cell size to 32
4. create a wall using the sprite like this:

5. add these events:

Observed result:
the sprite w/ pathfinding behavior can't get outside the walls.

Expected result:
the sprite should be able to go outside.

Browsers affected:
Chrome: yes/no
Firefox: yes/no
Internet Explorer: yes/no

Operating system & service pack:
Windows 8

Construct 2 version:
Posts: 1
Reputation: 302

Post » Tue Jul 02, 2013 5:13 pm

Use a negative size in the "Cell border" property.
Otherwise the "blank" space is considered as unwalkable as the solid walls.

Not a bug, but a misunderstanding of the user.
Be sure to check again the manual article about the pathfinding behavior, there is some illustration of that.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Posts: 7,381
Reputation: 73,838

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest