Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.