Stamina bar and timeline

Hi,

I have stamina that I’m trying to setup with timelines for when I start sprinting with the shift key held and continue to hold then loop the consume sprint timeline and then once I stop sprinting play the replenish sprint timeline. The whole setup works fine but only on the first time doing so. Here’s the graph, if anyone can help I’m sure i’ve missed something.

1 Like

Try ‘play from start’ instead of ‘play’

1 Like

Thankyou, it was that easy. I do however have another issue as when the stamina is depleted it doesn’t recharge fully but this is probably an error with the logic in the IncreaseStamina function, i’ll try and work on that.

1 Like