How do I get my enemy to follow the player?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi everyone, I was wondering if I could get my enemy to follow the player, the main issue that I keep getting is that the enemy (in this case a ghost) sees the player, goes towards him but instead of him following the player everywhere the ghost instead keeps going in the direction that they first saw the player in. I would like the ghost to be floating but I've noticed that it always keeps messing up. Thanks for the help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And how are we supposed to help you without seeing your capx?

    You didn't even tell us what kind of game this is - platform, top-view, grid-based etc.

  • If using in a top down game then either use pathfinding or give the ghost a bullet behavior with the speed you want and then use "set angle to position" action in your ghost sprite and set its parameters to player.x and player.y...

    If using in platformer you will need quite a few things to make it work and we would need more information about what you are actually attempting as dop2000 pointed out.

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