# How To Make Status Bars Proximity Triggered

**URL:** https://forum.makecode.com/t/how-to-make-status-bars-proximity-triggered/7780
**Category:** Help
**Created:** [May 3, 2021, 4:11pm UTC](https://forum.makecode.com/t/how-to-make-status-bars-proximity-triggered/7780 "2021-05-03T16:11:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![WoodysWorkshop](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@WoodysWorkshop](https://forum.makecode.com/u/WoodysWorkshop)
#### Post date: [May 3, 2021, 4:11pm UTC](https://forum.makecode.com/t/how-to-make-status-bars-proximity-triggered/7780/1 "2021-05-03T16:11:34Z")

</div>

Hi makers and coders 😄

**1. Status Bars - Proximity**  
I want to make a farming game and so I’m starting with chopping trees. I’ve made an array of trees, attached status bars to them and hidden them, but I want to make it so that when my character walks away they disappear without losing their data.

**2- HUD Option with text Sprites**  
I also want to make a HUD using the text sprites (as they have some icons)… however… as my character moves around, I don’t know how how attach them to my sprite? I want to use text sprites to show actual numbers as opposed to a status bar.

Thanks in advance!

-Woody

> **[Tree Chopper V0.3](https://arcade.makecode.com/50894-38044-55363-38118)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [May 3, 2021, 4:42pm UTC](https://forum.makecode.com/t/how-to-make-status-bars-proximity-triggered/7780/2 "2021-05-03T16:42:14Z")

</div>

One very useful extension is @jwunderl’s arcade-sprite-util. You can grab it by pasting this into the extension search box:

jwunderl/arcade-sprite-util

One of the blocks in that category with calculate the distance between two sprites and you can use it with an on game update interval to trigger code when the player gets close
