Pathfinding problem

  • Hello,

    Here's a little capx to display a pathfinding problem. Any click to move the red sprite. Try to go left or right and see that it can pass through diagonal walls. R to retry and space to display obstacle map.

    Is this an intended behavior of the pathfinding plugin ? I use a cell border of -1 because otherwize the obstacles are way too large. And a cell size of 32, the size of the tiles. Why does the pathfinder ignore the size of the object that's moving, and make it pass through diagonals.

  • Hello ? Nobody ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Really ? Nobody ? I edited the link in the first post so it now displays the pathfinder nodes onscreen. This is a strange behavior.

    Please, I need help on this.

  • If some other people get stuck with the problem, I came with a backup solution. The problem is to keep objects moving in diagonal but also to not find path between two close diagonal tiles.

    Use the Pathfinding behavior with diagonals off, only to find a path and avoid setting path between two diagonal tiles. And for the movement, use another behavior and regularly test if the next node on the path is in line of sight or directly reachable via raycasting or whatever. If so, then set the object to follow on with this next node.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)