Immersion Starts with Sound

Day 29- Making 2D Space Shooter Game

Objective: Make your game immersive by adding a background audio.

Lets start by creating an empty gameobject which will control all of our game audios. Let’s create another empty gameobject inside that empty gameobject through which we will be controlling our game background audio.

Then in your background music inspector, add an Audio source component which will be used play and control the music.

Now drag your background music in the AudioClip and enable the Play on Awake and loop.

Now you are ready to play your game and enjoy the background music immersing in the gameplay.

Note: Be sure to deselect the Mute Audio in your game view if you don’t hear the audio in the game.



Unity Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store