How do I check if the sprite is in the neighborhood, and if not, create another copy of the sprite there?
Develop games in your browser. Powerful, performant & highly capable.
You can use Line of Sight:
Player NOT has Line of Sight to Enemy : Create Enemy
Or "Pick by evaluate" condition
System Pick Enemy by evaluate distance(Enemy.x, Enemy.y, targetX, targetY)<500 Else : Create Enemy