# Animating UMG's ProgressBar on Event Tick

**URL:** <https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308>\
**Category:** UI\
**Tags:** progress-bar, event-tick, unreal-engine, question, UMG\
**Created:** [August 19, 2017, 11:58pm UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308 "2017-08-19T23:58:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8b77cbb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8b77cbb9](https://forums.unrealengine.com/u/anonymous_user_8b77cbb9)\
**Post date:** [August 19, 2017, 11:58pm UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308/1 "2017-08-19T23:58:45Z")

</div>

In my HUD’s tick event, I have a graph set up so that the health bar should animate smoothly from 100% down to 50% fill.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f0984456f8dd47c5beb0a68b72c3d6cf62ef2aa.jpeg) ](http://tinypic.com/images/goodbye.jpg)

However, this does not work; the health bar doesn’t budge a single inch. At the end of the graph I’m updating a text block with the ‘Curr HP’ value and _that_ decreases as expected. This can only mean that the `Set Percent` node isn’t doing what it should. The health bar only updates when the target of 50% is reached.

I’ve also tried binding a function to the ‘Percent Fill’ property inside the UMG editor that simply returns `Curr HP`, but that also doesn’t work. The health bar stays unchanged, until the value hits 50 and it suddenly skips to 50%.

How can I get this to animate properly?

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [August 20, 2017, 5:40am UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308/2 "2017-08-20T05:40:09Z")

</div>

Your Progressbar expects a Value between 0-1 not 0-100 (read the tooltips next time ;P)

CurrentHP / MaxHP = Percentage of the current HP between 0-1

Thats it Good Luck =)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8b77cbb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8b77cbb9](https://forums.unrealengine.com/u/anonymous_user_8b77cbb9)\
**Post date:** [August 21, 2017, 2:52am UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308/3 "2017-08-21T02:52:46Z")

</div>

Thanks! I only ever read the tooltip on SetPercent and thus couldn’t figure this out.

---

<div class="post-metadata">

**Author:** ![Ryan87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan87](https://forums.unrealengine.com/u/Ryan87)\
**Post date:** [October 9, 2020, 7:44pm UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308/4 "2020-10-09T19:44:50Z")

</div>

Here is how I managed to do it. I did not want to use ticks cause dont need it running all the time so I used a timer that ticks at world delta time and gets invalidated at end of cooldown. Check it out.

 ![317848-cooldownbar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/d/4ed4f0a509a94da939841bb6f127eabd6e7e7677.png)

---

<div class="post-metadata">

**Author:** ![Ryan87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan87](https://forums.unrealengine.com/u/Ryan87)\
**Post date:** [October 9, 2020, 7:45pm UTC](https://forums.unrealengine.com/t/animating-umgs-progressbar-on-event-tick/402308/5 "2020-10-09T19:45:23Z")

</div>

Made a few errors in my first post. See this image.

 ![317889-cooldownbar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/2/f42c50c1e16f59aedef7c2237bd5087b06f0e4dc.png)
