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

Get help using Construct 2

Post » Tue Jul 29, 2014 7:30 pm

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.
Posts: 5
Reputation: 183

Post » Tue Jul 29, 2014 8:06 pm

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.
Posts: 157
Reputation: 3,359

Return to How do I....?

Who is online

Users browsing this forum: JGblkshot, mongol and 3 guests