the issue I’m having right now is that I can get the bar to go down at a normal rate, but I won’t constantly go up because there is no .is_action_released there is only .is_action_just_released which only give stamina for the 1 frame after I stop sprinting. I just need someone to help me with that and if anyone knows how to make me stop sprinting once I reach zero stamina that would be good cause I don’t even know where to start with that.
you can use not to flip a boolean value if not Input.is_action_pressed("sprint"):, or better yet a else: to go with the if statement which acts similarly in this situation