For the first time, we will be adding audio to our game. We will add sound effects for Space Buddy's jumps that will play each time he jumps on a platform as well as a sound effect when he dies and when he enters the UFO beam successfully, completing the level.
To add the sound effects, let's execute the following steps:
Add a folder to Assets within the Project Browser and name it
Audio
.Download the audio wave file
spin_jump.wav
from the following URL:Drag the audio file into the
Audio
folder.If we click on the imported audio asset file, we can select whether it is a 3D sound (sound manipulated to appear as if it is originating within a specific point in 3D space) or not, as well as its compression settings and therefore file size. When creating games for mobile platforms for instance, we need to keep files compressed and small in size. This does have a minimal effect on the audio quality. For a few very short sound effects, native ...