# Trying to make health bar follow player

**URL:** <https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316>\
**Category:** Help\
**Tags:** game, extension\
**Created:** [November 16, 2023, 9:24pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316 "2023-11-16T21:24:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vampire-Squid12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vampire-squid12/32/11419_2.png) [@Vampire-Squid12](https://forum.makecode.com/u/Vampire-Squid12)\
**Post date:** [November 16, 2023, 9:24pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316/1 "2023-11-16T21:24:24Z")

</div>

I am working on a game about thermophobia (fear of heat) so how do I health bars follow my players using the health bar extension.

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [November 16, 2023, 10:08pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316/2 "2023-11-16T22:08:55Z")

</div>

Just use the attach `statusbar` to `mySprite` button.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [November 16, 2023, 10:09pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316/3 "2023-11-16T22:09:30Z")

</div>

There is an attach to sprite block

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [November 16, 2023, 11:20pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316/4 "2023-11-16T23:20:09Z")

</div>

Just attach it. 🙂

---

<div class="post-metadata">

**Author:** ![Vampire-Squid12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vampire-squid12/32/11419_2.png) [@Vampire-Squid12](https://forum.makecode.com/u/Vampire-Squid12)\
**Post date:** [November 20, 2023, 10:31pm UTC](https://forum.makecode.com/t/trying-to-make-health-bar-follow-player/24316/5 "2023-11-20T22:31:52Z")

</div>

After making this post i saw the block.
