Hello @gamingislove,
Found in the 3D Action RPG demo a bug with the sprint mechanics, and stamina consumption.
Reproduce
1) Sprint until reaching 0 stamina, and keep pressing the shift key
2) The stamina regen fights with the Stamina Block, and never goes up.

Expected
1) When stamina reaches 0, and ignores the shift key.
1) stamina regen to fill the bar.

In my tutorials I'm using similar logic, but using the sprint as an Ability, the ability is triggered via control map, but having a status stamina condition makes no difference, and the ability is triggered anyways.
  • It's not a bug, that's just how it works.
    If you keep holding down the sprint key, the player will sprint again when enough stamina was recovered, immediately running out of stamina again.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.