[23/03/2021] Sound Effect (Driving, Horn and Explosions)
- Daniel Henshaw
- Mar 22, 2021
- 1 min read
Updated: May 19, 2021
I created engine sounds for when the car starts and is driving. The starting sound is played and then replaced via a script. After that, the driving sound is played. The sound for driving is looping and depending on the speed of the vehicle the pitch changes. By doing this it makes the car sound like it is moving.
I created an audio source that loops as long as the boost button is being pressed. The gives people an audio indication that their boost is on.
The explosion sound is an empty GameObject placed inside the explosion particle object. The audio source is set to "Play On Awake". I did it this way because it means all I need to do is enable the explosion particles and the explosion audio already works.
Demo:
Trello:

Comments