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!):
https://docs.google.com/file/d/0B-qy4LXCsUg9LVJWeWN2TW1JNFE/edit?usp=sharing

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:
r136
B
3
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 !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,785


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest