How do I pathfind around objects own instances

0 favourites
  • 3 posts
From the Asset Store
Like tourists, Travel around the world as fast as you can!
  • so.. i have a for example a car.

    that car has pathfinding.

    there are other car instances on map. i want every single car to get to the point where it was set to go, but avoiding his own instances (of the same object).

    how do i do that? is it even possible? when i set solids and added solid, they were just standing not moving at all. when i removed they were moving, but overlapping, and i don't want to use custom movement push because it looks wierd.

    any ideas? (p.s. regenerating object obstacle tree isn't a problem)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds like a problem inherent to the pathfinding concept.

    Moving objects can not (should not) be taken into consideration for pathfinding obstacles.

    There are some options to prevent the overlapping, one I use often is the "push out solid" behavior.

    There is a push out solid in the custom movement behavior, and Rex also has one with his plugins.

  • I use often is the "push out solid" behavior.

    There is a push out solid in the custom movement behavior

    That is the best tip I have read all week. Thanks! lennaert!

    I have been pulsing an overlap collision sensor, and adding custom movement to my AI so they do not overlap.

    Thanks!

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