Obstacles shared between pathfinding objects

0 favourites
  • 1 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Link to .capx file (required!): capx

    Steps to reproduce:

    1. Run the layout

    2. Disable the add obstacle event and run layout again

    Observed result:

    Both objects move the same way around the obstacle, while only one of them has obstacle added.

    Expected result:

    The other object should go through the obstacle. This is fixed when objects have separate cell sizes.

    Manual quote :     "For best efficiency, use the same cell size and border for all objects using the Pathfinding behavior in a layout. If different objects use different values, then the Pathfinding behavior must generate multiple obstacle grids in memory, and pathfind along them separately."

    Changing cell size is poor mans fix to have them generate separate obstacle maps, but as mentioned in the manual this can have performance implications.

    Browsers affected:

    Chrome: yes

    Operating system & service pack:

    Win 7

    Construct 2 version:


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)