0 Favourites

How do i make the enemy always follow the player?

  • So i'm making a 2d, 2 directional game, how can i make the enemies in the game always follow the player while still maintaining their platform behaviour? I have tried countless methods from simulating control to path finding but none of them seem to work the way i want them to...

    Is there a way to make them always follow the player, even if he's above them or below them?

    Another thing is how can i make them jump?? I tried triggers that stimulate jump but they don't work if they are put against a solid, don't ask me how i have no idea

    Here is a video:https://youtu.be/bKfQ7-fHFac

    In the video i'm using the "Move front" action to move the player, pathfinding works better but is VERY glitchy.


  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Hey there! I think these might be able to help in general!

    You'll find lots of useful files searching through the forums and tutorial page! These should answer your questions except maybe getting an enemy to both follow and jump if the player is on a higher ledge. I imagine you need to run some sort of check to figure out if the player is above a certain Y value in relation to the enemy then jump. I'm actually pretty sure I've seen a capx like that floating on the forums too Anyway, hope these help!

  • Thx!

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