# progress bar by delay

**URL:** <https://forums.unrealengine.com/t/progress-bar-by-delay/458460>\
**Category:** UI\
**Tags:** endless-runner, progress-bar, unreal-engine, UI, question\
**Created:** [November 15, 2019, 11:25am UTC](https://forums.unrealengine.com/t/progress-bar-by-delay/458460 "2019-11-15T11:25:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0202af0f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0202af0f1](https://forums.unrealengine.com/u/anonymous_user_0202af0f1)\
**Post date:** [November 15, 2019, 11:25am UTC](https://forums.unrealengine.com/t/progress-bar-by-delay/458460/1 "2019-11-15T11:25:53Z")

</div>

i’m making my first ue4 game, an endless runner game, and i made a power-up that works for 7 seconds and then stops, and I wanna make a progress bar that shows how much time is left, how do i do that?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [November 15, 2019, 12:07pm UTC](https://forums.unrealengine.com/t/progress-bar-by-delay/458460/2 "2019-11-15T12:07:28Z")

</div>

You can set a timer to tick every .1 second and decrease the float variable by .1 each tick until it reaches zero, and divide this value by 7 to get the percentage

Or get a world time, add 7 to it and save it to variable, and then subtract the world time from that variable on tick to get the value.

Or even make a Timeline with curve that goes from 100 to 0 in 7 seconds and use in as progress bar percentage.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 15, 2019, 1:05pm UTC](https://forums.unrealengine.com/t/progress-bar-by-delay/458460/3 "2019-11-15T13:05:55Z")

</div>

- or MapRange 0-7 seconds from the timer onto Progress Bar’s 0-1
- or, since this is widget, use widget animation that lasts 7 seconds
