Random enemy movement and chasing (top down)

i want my enemy to randomly move around until i come to close, then it chases me, could you please give me a link example, thank you.

it is a top down game, please respond asap if u can.

Ok, here we go. link
It triggers and un-triggers when you get close enough.
It can be kinda glitchy when it’s near a wall. You could adapt this to your game @Dark_soldier

And you should name your topics so that people can see what’s in them.
:expressionless: :expressionless: :expressionless: :neutral_face: :neutral_face: :neutral_face:

1 Like

maybe

You could. I’m not saying you have to, it’s just it would be nice if the monster would stop chasing you if it was too far away.

i made so it would run away when i went in the closet but a weak later when adding moble it stoped working

Ahh… That’s cool.

?