How do I solve this 'Pathfinding' issue?

  • I'd really appreciate it if anyone could help me with this.

    So I have a family (enemyTanks) that has a pathfinding behavior that works fine when I have:

    [quote:1kgdwufq]Pathfinding.Obstacles(Custom)

    and no custom obstacles set.

    However if I set:

    [quote:1kgdwufq]Pathfinding.Obstacles(Solids)

    or

    [quote:1kgdwufq]Pathfinding.Obstacles(Custom) == tankObstacles

    the tank does not move from it's position.

    (All the objects in tankObstacles have the Solid behavior)

    The event sheet is pictured below -

    Full size image here: i59.tinypic .com/27wvb4o.jpg

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add obstacle

    If the Obstacles property is Custom, add an object to mark as an obstacle in the pathfinding grid. If this is done during the game (after Start of layout), you must also use Regenerate obstacle map for it to take effect.

    So you seem to be missing the regenerate obstacle map - action.

  • So you seem to be missing the regenerate obstacle map - action.

    Where should I add the regenerate obstacle map action? I have tried a few different places and events but none have worked for me.

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