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