How to make a roaming monster

I need some help with my top-down game. I’m working on a roaming monster that should chase the player when it sees them, and return to roaming once the player is out of its line of sight.
Help!!

1 Like

Plzz HELP!!I tried everything

JR01 has an example for that

1 Like

This is okay but I want the monster to roam around too

1 Like

So I kinda messed with it a little, and got this for you (bundles were not changed)


If it’s a little jumbled for you and you still need help, I can probably explain more

or if you want me to send you the code, I can do that

Edit: Actually, I don’t think I can do that