# infinate stamina bug

**URL:** <https://forums.unrealengine.com/t/infinate-stamina-bug/2725436>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [May 31, 2026, 9:32am UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436 "2026-05-31T09:32:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![LWHITTY12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LWHITTY12](https://forums.unrealengine.com/u/LWHITTY12)\
**Post date:** [May 31, 2026, 9:32am UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/1 "2026-05-31T09:32:33Z")

</div>

HI, I’m trying to make a stamina mechanic although it works, the bar empties and refills when stop. for some reason if i empty the stamina and let it fill up anywhere between 1 and 99 i got and infinite stamina, causing the progress bar to flicker.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/e/e9e8b191f593723df9b030f75a649068b82c7f97.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/e/dbe52eb466f82c5ca4c78f7855ad95efcb8074a4.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/6/956cd1c004c51b45b41b0acacc09e2b69af32252.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 31, 2026, 10:39am UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/2 "2026-05-31T10:39:22Z")

</div>

Try clamping the stamina calculation, it’s much easier 😉

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [May 31, 2026, 5:39pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/3 "2026-05-31T17:39:01Z")

</div>

Clockwork is correct, but I personally don’t like the Retriggerable Delay here for what you’re trying to do. Because it’s so short, you can get away with it (for most players)… but if the player spams the button, they will NEVER deplete/recover stamina (because they will continue to interrupt the delay). You need a GATE, DO\_ONCE, or Boolean.

---

<div class="post-metadata">

**Author:** ![LWHITTY12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LWHITTY12](https://forums.unrealengine.com/u/LWHITTY12)\
**Post date:** [May 31, 2026, 8:22pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/4 "2026-05-31T20:22:13Z")

</div>

I tried clamp that didn’t work for some reason

---

<div class="post-metadata">

**Author:** ![LWHITTY12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LWHITTY12](https://forums.unrealengine.com/u/LWHITTY12)\
**Post date:** [May 31, 2026, 8:22pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/5 "2026-05-31T20:22:39Z")

</div>

That could be something I’ll try that, thank you

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [May 31, 2026, 9:24pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/6 "2026-05-31T21:24:16Z")

</div>

Clockwork is definitely correct. What did you clamp? (If you decide to go the TENUOUS clamp route, you’d be clamping the output of your adder.)

That would make the Stamina NEVER exceed 100.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/f/b8fc561e366ef23c093c9a9f9fc06016967321ce.jpeg)

---

<div class="post-metadata">

**Author:** ![VoiclessCry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoiclessCry](https://forums.unrealengine.com/u/VoiclessCry)\
**Post date:** [June 1, 2026, 2:39pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/7 "2026-06-01T14:39:06Z")

</div>

Just a lil recommandation, may your problem in refill and using events, in your codes rn the loop doesnt waiting for your events callback so they may pass without bool changes. If not alreay this will be a problem later. You can change your events with macro (if the events all in the same bp) or use interface with callback boolean. For example for refillment event, add it a boolean out in interface event then event will wait its feedback. Should be solve your problem.

And sure add clamp[0-100] to your set floats.

---

<div class="post-metadata">

**Author:** ![LWHITTY12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LWHITTY12](https://forums.unrealengine.com/u/LWHITTY12)\
**Post date:** [June 1, 2026, 8:11pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/8 "2026-06-01T20:11:37Z")

</div>

hi i used a clamp and the issue im currently having is if i tried to spirnt or even use oxyegn between the vallue of 1 and 99 its bugs out the progress bars making in infinite

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [June 1, 2026, 9:01pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/9 "2026-06-01T21:01:19Z")

</div>

@VoiclessCry @LWHITTY12

I say this with all the love in my heart:

“What?”

---

<div class="post-metadata">

**Author:** ![LWHITTY12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LWHITTY12](https://forums.unrealengine.com/u/LWHITTY12)\
**Post date:** [June 1, 2026, 10:36pm UTC](https://forums.unrealengine.com/t/infinate-stamina-bug/2725436/10 "2026-06-01T22:36:47Z")

</div>

sorry but ive got it now, thanks
