Pathfinding with nodes.

0 favourites
  • 1 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • I'm trying to set up a map that has multiple paths depending on a setting on the creep itself.

    I have 2 paths: Top and Bottom, and I want all minions with the variable TOP to seek along with the top path, and bottom the same way with the bottom path.

    I've tried to have it pick the nearest instance with this

    if MINION.LANE = PATH_NODE.LANE

    Pick nearest PATH_NODE minion.x minion.y

    MINION.NODE_NUMBER < PATH_NODE.NUMBER

    MINION - Find path to PATH_NODE

    if MINION is OVERLAPPING PATH_NODE

    set MINION.NODE_NUMBER to PATH_NODE.NUMBER

    It seems to hijack about half my minions to go to the first node top, and the others don't do anything.

    Any ideas on how to make them follow a series of nodes until their destination?

  • 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)