# Create Health bar UI in game

**URL:** <https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 1, 2015, 12:13pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359 "2015-09-01T12:13:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TruongBui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/truongbui/32/743871_2.png) [@TruongBui](https://forums.unrealengine.com/u/TruongBui)\
**Post date:** [September 1, 2015, 12:13pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359/1 "2015-09-01T12:13:42Z")

</div>

Hi everybody, I am working on a top down game. I want to create the health bar displaying above my character in game, such as this:

![9ad24856bc965d0acea36eaa0ae61a203d5d112c.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

I create a widget blueprint contains progress bars as my health bar in game, then add it to Widget Component in my character blueprint. My problem is the health bar also rotates as my character does. I want it always face to my camera just like the billboard component:

![e983163bcc0a99a21f00b69ea4449d2dfd757f37.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![2430be01b8997e0cba79036cc9d48c3fb41e4872.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Any solution? Thanks.

---

<div class="post-metadata">

**Author:** ![Yggdrasil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yggdrasil](https://forums.unrealengine.com/u/Yggdrasil)\
**Post date:** [September 1, 2015, 12:49pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359/2 "2015-09-01T12:49:22Z")

</div>

You need to set its [rotation according to the camera viewport](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCUQtwIwAWoVChMI2Nyyw-_VxwIVyDM-Ch375wwJ&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2U_Y2SxfXr8&ei=rJ7lVdjWIsjn-AH7z7NI&usg=AFQjCNEs_44hYfEv8feWwXDFgEokRzJ30Q&sig2=bRxiDZcUUVJuBT0kM3wvLg), but only the Yaw of the healthbar, unless you want it pitching and tilting as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02360bb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02360bb5](https://forums.unrealengine.com/u/anonymous_user_02360bb5)\
**Post date:** [September 1, 2015, 1:58pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359/3 "2015-09-01T13:58:08Z")

</div>

Hello, did you try to set the widget component’s UI space to Screen ?

---

<div class="post-metadata">

**Author:** ![TruongBui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/truongbui/32/743871_2.png) [@TruongBui](https://forums.unrealengine.com/u/TruongBui)\
**Post date:** [September 1, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359/4 "2015-09-01T15:03:43Z")

</div>

> [@Raikoh;369238](#):
>
> Hello, did you try to set the widget component’s UI space to Screen ?

Wow thank you very much. I am following Yggdrasils’ video and the result is not what I want but you just helped me out 🆒

---

<div class="post-metadata">

**Author:** ![Yggdrasil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yggdrasil](https://forums.unrealengine.com/u/Yggdrasil)\
**Post date:** [September 1, 2015, 4:17pm UTC](https://forums.unrealengine.com/t/create-health-bar-ui-in-game/40359/5 "2015-09-01T16:17:04Z")

</div>

It is not my video.
