# Progress bar is reading a correct value

**URL:** <https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050>\
**Category:** UI\
**Tags:** bug, health-bar, progress-bar, unreal-engine, Widget, question\
**Created:** [January 31, 2021, 5:28pm UTC](https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050 "2021-01-31T17:28:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nome\_muito\_fixe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nome\_muito\_fixe](https://forums.unrealengine.com/u/Nome_muito_fixe)\
**Post date:** [January 31, 2021, 5:28pm UTC](https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050/1 "2021-01-31T17:28:13Z")

</div>

I am trying to make every single animal have a progress bar with its Health.  
Everything should work as you can see but the progress bar is not displaying correctly.

In the top corner you can see what value it is sending to the widget to set it to the progress bar.

 ![328516-imagem-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/f/a6f9fe8587d60d6748c8643c4ed0a60fe4a202ba.png)

These are the values of the percent bar:

-0.2 is for the dead wolf  
0.06667 is for my crow which should mean that there is something filled in my progress bar.

 ![328517-imagem-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/5/3e556f2c2124a2b1ee0aaf5c2e1c6128e76b5c58.png)

Here the progress bar is full when the crow as 240/300 HP.

Help pls

---

<div class="post-metadata">

**Author:** ![carlboisvertdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/carlboisvertdev/32/987848_2.png) [@carlboisvertdev](https://forums.unrealengine.com/u/carlboisvertdev)\
**Post date:** [January 31, 2021, 7:09pm UTC](https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050/2 "2021-01-31T19:09:20Z")

</div>

Can you update your question and include the code or screenshots of the blueprint you made to update the progress bar? The basic thing is that you must set the Percent attribute of the progress bar to change the value. The value must be between 0 and 1, which seems to be the case from what you said. So update with the code or Blueprint so we can take a look at it

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [January 31, 2021, 7:20pm UTC](https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050/3 "2021-01-31T19:20:56Z")

</div>

Well, this could be a lot of things if we don’t know the exact code you are using. I guess we should check the basics first:

Are you setting the health bar to be (Current Health Variable) / (Max Health Variable)? I believe that is the norm for these.

---

<div class="post-metadata">

**Author:** ![Nome\_muito\_fixe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nome\_muito\_fixe](https://forums.unrealengine.com/u/Nome_muito_fixe)\
**Post date:** [January 31, 2021, 9:43pm UTC](https://forums.unrealengine.com/t/progress-bar-is-reading-a-correct-value/478050/4 "2021-01-31T21:43:03Z")

</div>

![328507-unknown.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/5/ea5d44e2a35d136dc5b09c0278ef31178f7b1884.jpeg)

Just solved, i needed to increase the widget size 🙂
