I'm working on a top down space shooter for a game jam. I'm trying to have it when a certain enemy spawns in to chase the player until collision. My main issue is how do I set up the enemy AI to follow the player. I've tried multiple things but I can't get it to work. What am I doing wrong? Thanks in advance.
What did you try? You can set the enemy as a bullet that always sets angle of motion towards the player, or you can use pathfinding behaviour.
Nevermind I figured it out. I used the "Move To" behavior and set it so that every tick the enemy would move to the X and Y player coordinates.
Here is an image of what I did:
Develop games in your browser. Powerful, performant & highly capable.
Yep moveto also an option. Also set angle toward player and 'move forward' works.