How do I use Pathfinder to land on a certain point?

0 favourites
  • 2 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • I know how to set up obstacles, and use the pathfinding behaviour to navigate around them, but when I want to move an object to a certain point the object won't go to that point, just kind of close to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The pathfinding nodes get positioned to the nearest cell, so maybe what you could do is use your own movement system instead of pathfinding's in-built movement (eg. rexrainbow's MoveTo plugin), then have pathfinder create waypoints for each node. For the last waypoint, you'd ignore the final node & use mouse XY position (stored onButtonRelease when initially setting the path).

    There might be a way to do this with Pathfinding, but the only useful things I can see are the 'Is moving along path' condition & the 'CurrentNode' expression (NodeCount-1 would give you the final node), & no way of setting NodeX/Yat.

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