what else you can do is:
fade in and out via an animation… right…
But… how to do that automatically?
create an event called “Trigger Stamina”. Inside ask, if the stamina is visible. If not, play the fade in animation.
If yes AND after animation playforward, add a “retriggerable delay”. lets say: 3 Seconds long.
after that delay play the fadeout animation.
You now call this event over and over again, as long as you need the stamina Bar to be visible. The clou is, that the retriggerable delay resets itself back to 0 everytime it gets called… and only plays the nodes after itself, if the delay reaches the duration.
means… if you stop sprinting/attacking…etc you stop calling the Trigger Stamina Event… and this will make the retriggerable delay to reach its duration and fade out the Bar