This should be obvious but you need to add speed variable or check if moving before draining the stamina.
So Key press —> is character moving -----> if yes drain stamina/draw to bar
This should be obvious but you need to add speed variable or check if moving before draining the stamina.
So Key press —> is character moving -----> if yes drain stamina/draw to bar