Bugs in sprinting system

Greetings

I am currently attempting to follow this tutorial

(3) Sprinting And Stamina - Unreal Engine 5 Tutorial - YouTube

However, I have a couple bugs, mainly holding down shift while not moving drains stamina.

SImply adding a branch node to detect if the player’s velocity is > 0 doesn’t work, as the way it’s set up it either freezes the stamina bar in place and doesn’t let it refill or does a weird thing where the bar goes down a little and freezes. It does the former if you place the branch in the character’s event graph, and the latter if you place the branch in the “start sprinting” function. How can I fix this?

Hey @Z-J42!

If you could get us some snips of the code you currently have, we’ll be happy to help! It’s really difficult to figure out what’s going on otherwise, unfortunately.

Get us some code, and we’ll get you figured out! :smiley:

all right, here’s some screenshots