EECS 494 Metroid Tutorials

Audio

An often neglected part of prototyping is adding Audio to your game. This is unfortunate since most Audio will be easy to add, but has a suprisingly positive impact on how your game plays.

Downloading and Adding a Sound Effect.

So far we’ve just been using Assets that were included in the Unity Package. However, it will generally be your responsibility to find these on your own.

Begin by going to sounds-resource.com and searching for Metroid.

Under the Sound Effects tab click the one that’s available: Sound Effect.

Click Download Zip and use your favorite unzipping tool to open the folder. Now we have a number of (unfortunately unnamed) Sound Effects you can use.

Create a new Audio folder and drop all of these files in. While we’re just going to add the shooting sound effect in this tutorial, it will be useful to have all of these once you start working on the other sounds.

Rename Sound Effect (3) to Fire as it will be the effect we use. At some point you may want to rename all of the Sound Effects you’ll need, but it will be up to you to figure out the rest of them.

Assets

Setting up

Begin by adding an AudioSource component to the Bullet Prefab

Update the Source to our new Fire sound effect.

Ensure that Play On Awake is True (This should be the case here, but note that sometimes you many not want this).

Inspector

Conclusion

That’s it for adding our Sound Effect, see how easy it is?

When you’re ready, commit your changes and head over to 11: Morph Ball.