Week 9: Creating the Western Prototype in UE5 (Part 3)

Creating Exterior Sound Effects

I used a YouTube tutorial by ACDev to help me create a muffled sound effect. 


I first sourced a sound effect from Artlist and added it to my level in Unreal Engine, setting 'Override Attenuation' to true in the level editor, and modifying the 'Inner Radius' and 'Falloff Distance' values to make the sound cover the whole saloon. I then added an 'Audio Volume' to my level to cover the interior of the saloon. When the player is within this volume, the sound effect will be muffled, creating the effect that the sound is coming from outside the saloon. 




In the level editor, with the 'Audio Volume' selected, I changed the 'Exterior Volume' to 0.7 and created my sound effect into a sound cue. I then created a sound class called 'Environment' and went to the 'Master' sound cue to group my 'Environment' sound class. With the 'Environment' node selected, I set 'Apply Ambient Volumes' to true. In my sound cue, I then set the sound class to 'Environment'.




Creating a Head Bobbing/Shaking Effect

I used a YouTube tutorial by Nixik Studio to help me create a head bobbing effect. 


Firstly, I added a Boolean variable called 'Running' within 'BP_FirstPersonCharacter' and set the value to true when the player is sprinting, and to false when the player is walking. 




Next, I created the script below to create my head bobbing effect for when the player is walking or running. 



I then created the code below, following on from the default jump script within 'BP_FirstPersonCharacter', to create a head bobbing effect for when the player jumps.




I also created the script below to create a shaking effect when the player lands after jumping. 




Creating Footstep Sound Effects

I used a YouTube tutorial by Matt Aspland to help me create footstep sound effects in Unreal Engine. 


I first imported my sound effects of footsteps into Unreal Engine and created a sound cue, inputting all the sounds into a 'Random' node. 



I then found the walking animation of the player character in the content drawer. With this open, in the timeline, I added a notify play sound marker for each step the player takes. This plays the sound cue when the player is walking. 



Although the footsteps work, I think the individual sound effects need to be changed or the timing of the sounds need to be modified, as right now I think they sound a little bit too fast and disorganised. 





Creating a Countdown Timer 

I used a YouTube tutorial by Matt Aspland to help me create a countdown timer in Unreal Engine. 


Firstly, I created a widget for the countdown timer, featuring a 'Canvas Panel' and 'Horizontal Box'. I added a 'Text Block' to the 'Horizontal Box' to be the timer. 




With the 'Text Block' selected, I pressed 'Bind', created two Float variables, one called 'Mins' and one called 'Secs', and created the script below.




To make the countdown timer set and display these variables, I created the script below in the event graph of the timer widget. 



Comments

Popular posts from this blog

Sem 3 Submission

Semester 2 Submission

Week 7: Creating the Western Prototype in UE5 (Part 1)