Download

Sprint with Stamina, does not stop. Help Me Please!!!

Sprint with Stamina, does not stop. Help Me Please!!!

I’m using a system in my stamina regen. Everything is working. OK!

BUT

However,

When I press the Shift key to sprint, even with my character stopped or blocked by something the stamina is indiscriminately consumed.:confused:

The problem: I need to be able to say that stamina should only be consumed if the character is in “inputAxis MoveForward”, Always forward. And is the thing that I’m not achieving…

Please my character is very tired!:frowning:

Sprint Condition

Sprint_1.jpg

Regen Mechanics (working very well)

789a6a425fae6961f2ca4980311101ad11615155.jpeg

Luny

Sorry I think I has solved it with Compare Floats

My movement input is like this now

Sprint_3.jpg

Then I added a new branch in stamina regen

0f5d642dc170bc342d5605578efb32bbe9d4cbaa.jpeg

Now this is working fine for me:cool:

Luny