Saturday, 18 April 2015

Player Breathing and Linked to Run Function

The breathing recordings were used to create player breathing cues, initially this is only normal breathing and running breathing. A much more dynamic breathing system is more desirable but at this stage there is little time left to include more at this stage as testing should be under way already.

Inhale and exhale samples were were connected as a continuous sound by using the concatenator node, these were also linked together randomly to add variety to each breath.  

Normal_Breathing to be called when walking

Running breath which is called when character is running

Transition breath is called when the player stops running before returning to normal breath
The system which identifies when the WASD (movement keys) were being pressed was already in place from the previously created crouch function so it was a case of extending this to now incorporate the Left Shift key to trigger the run breathing sound.

When Left Shift + WASD (movement) is pressed the run breathing sound is triggered, after the sound has played it checks to see if the the player is still running and if so repeats the for another breath. If the player has stopped running then the signal moves onto the transition breath before returning to the normal breath.

No comments:

Post a Comment