Panting sounds while sprinting

Aethryx
Fri, 27 Mar 2015 03:10:06 +0000
Audio

I want my player character to make panting sounds (which I’ve recorded) while sprinting, and then catch his breath upon stopping. I can’t seem to get it to work. So far all I can get it to do is automatically play both sounds when the shift key is pressed, regardless of whether I’m moving. I also don’t know how to make the initial panting sound stop when the shift key is released.

EDIT: Forgot to mention, my game is in first person.

Screenshot:

6 posts - 1 participant