How do I advance pathfind?

0 favourites
  • 2 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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