Stop using stamina when not moving
I have a system setup where when you hold shift down it activated a faster speed and simultaneously takes away stamina. This works while standing completely still however, and that is undesireable. I followed a tutorial "https://www.youtube.com/watch?v=T_xiaMMzBHQ∈dex=14&list=PLSlkDq2rO1t7vAQxmhRfEdDTjygDf1D7H" and didn't use some of the variables such as "Is Sprinting". I'm wondering if there is a way to only take away stamina if the character is actually moving. Please help, see code below.
asked Dec 13 '18 at 01:11 AM in Blueprint Scripting
add a check where you're decreasing stamina, there're a few ways to check if the player is moving. Check for the axis input values of the movement, like this:
so true means player is moving the pawn, false means it's not.
answered Dec 13 '18 at 03:56 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here