r122/r123 Possible path finding bug.

Bugs will be moved here once resolved.

Post » Sun Mar 24, 2013 12:38 pm

Link to .capx file (required!):

Steps to reproduce:
1. Test 1: Press "1" to make the green square follow the mouse, move it over the opening so it covers the red square and left click to place it.Press the button "Find path to green".
2. Test 2: Following the same steps as in Test 1, but this time place the green square so it covers about half of the red square in the opening. And press the button "Find path to green"

Observed result:
Test 1: it will return "Path not found".
Test 2: Will move to the green square.

Expected result:
Test 1: Expected that the blue square would move to the green square.
Test 2: Expected that the blue square would move to the green square.

Browsers affected:
Chrome: yes
Firefox: Dont know
Internet Explorer: yes

Operating system & service pack:
Windows 7 with service pack 1

Construct 2 version:
r122 beta release. Also tested in r123 beta release which gives same results.    nimos1002013-03-24 12:51:54
Posts: 1,209
Reputation: 7,537

Post » Mon Mar 25, 2013 5:25 pm

Closing, as this is by design. The Pathfinding behavior will report 'path not found' if you send it in to an enclosed area (as in, an open space surrounded by obstacles). If you tell it to move on top of an obstacle, it will find the nearest open space and move there instead. That's all that is happening here.
Scirra Founder
Posts: 24,909
Reputation: 198,646

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests