# Follow radius

**URL:** <https://forum.makecode.com/t/follow-radius/39644>\
**Category:** Help\
**Created:** [October 6, 2025, 1:55am UTC](https://forum.makecode.com/t/follow-radius/39644 "2025-10-06T01:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)\
**Post date:** [October 6, 2025, 1:55am UTC](https://forum.makecode.com/t/follow-radius/39644/1 "2025-10-06T01:55:42Z")

</div>

How do I make a group of sprites follow another spirit but have a restriction on how close they get.

> **[475263](https://arcade.makecode.com/S22112-75069-52608-37045)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [October 6, 2025, 8:30pm UTC](https://forum.makecode.com/t/follow-radius/39644/2 "2025-10-06T20:30:34Z")

</div>

Uhm  
Use a follow block  
use the sprite utils extension

```auto
jwunderl/arcade-sprite-util

```

and use it to check if they get close enough.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [October 6, 2025, 8:33pm UTC](https://forum.makecode.com/t/follow-radius/39644/3 "2025-10-06T20:33:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/d/bd512afa98e97390be1a87652349233156396e77.png)  
A simple solution would be to check if the enemy is getting too close. If it’s a certain distance away, it will stop following, and if not it will keep following.  
[Here’s the link with my fix.](https://arcade.makecode.com/S77199-63074-90696-96800)  
Hope this helps!
