Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
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 try to make a platformer where enemy always goes in the direction of a player, but I can't find a way for detecting on which side of player enemy is.
I would add LOS and platform behaviour (with controls disabled) to the enemy. Then if player is in line of sight, then move enemy towards direction of player.
No, the enemy has to always know on which side player is, no matter if he sees him.
Develop games in your browser. Powerful, performant & highly capable.
If the enemies X position is > the players X position, he's on the right. If it's less, he's on the left.
Thank you, so simple and yet I could not find it (actually I used it once myself, but forgot about it, silly me)