Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
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
Hello. Broke his head already. How to make the NPC run away from you or another NPC when he sees you?
How to make prosecution no problem, but how to make it back?
Develop games in your browser. Powerful, performant & highly capable.
Comparing distance() between sprite 1 and sprite 2 and if is too close like less than x < 50 execute a trigger with an instance variable (boolean) to make it run away
If you want it when he can see you, the line of sight (LOS) behaviour can help you out.
thank you very much, I will try to do