UE4: Auto fading stamina bar

Hi, I have a stam system set up in a way that regenerates and drains the stamina smoothly with an Event TIck. I was wondering if there’s a way to make the stamina bar fade in, once stamina began decreasing, and fade out, once the stam bar is full. Since I can’t use the Event Tick for that, as that just spams the animations, what should I do? Tysm for your help.

1 Like

Here is a way to do it with an Event Tick. Basically, you need to check if:

  • Your Resource IS or IS NOT equal to its Max Value

  • If your animation is already playing

  • If your Opacity is set at 1 or 0 (1 for visible and 0 invisible)

After that just play the animation and make sure you set the loop at 1 because loop 0 will play the anim indefinitely in repeat.

1 Like

Thank you so much. This was really helpful.

1 Like