Enemies only chase when in a certain proximity to character

So I’m trying to make a dungeon crawler sort of game, and I’ve run into an issue where I want my enemies to only chase after my character when in a certain proximity to me. For example, the enemy will only chase me if I am less than 50 pixels away from it.

1 Like
jwunderl/arcade-sprite-util

This extension has exactly what your looking for

Wow I must have posted a reply during a mass approval sequence

1 Like

Awesome, thanks!

1 Like