How do I advance pathfind?

Get help using Construct 2

Post » Fri Sep 23, 2016 8:46 am

Hey all,
So ive been going through the pathfinding tutorials.

So my setup is currently quite simple. Ive used the turret pathfind tutorial to make my mouse point the target. So as the enemy spawns it heads to the current target however once it reaches the target, the enemy sits there at the that location even though ive moved my mouse. How do i have the enemy constantly follow my mouse with pathfinding?

I understand there is the move object to target location but then there is no pathfinding. Is there a way to implement both?

Thanks in advance!
Posts: 4
Reputation: 550

Post » Fri Sep 23, 2016 1:12 pm

To have it constantly follow the cursor, I use set angle toward mouse.x, mouse.y every tick and then object move forward. You could also do it by on every click, set mouse.x mouse.y to pathfinding destination, then have the enemy move to that destination. It really depends on exactly what you want to happen.
Posts: 2,342
Reputation: 52,693

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests