Ok so I’ve got a working stamina system with some basic HuD support now, just curious about an issue I’m having with it atm. I’ve got actions like Jump set to drain a set amount of Stamina each time you press the input and if you don’t have enough to jump then you can’t jump. Simple enough, but the issue appears that I lose Stamina every time I press spacebar to jump even when my character is in the air (aka there can be no jumping there so it shouldn’t be draining it). So is there a way to check if the character is in the air/falling to stop it from doing this?
Btw Here is the layout I currently have for it: