Day 19: Adding music
- neelvinay17
- Jul 17, 2023
- 1 min read
I started day 19 of making my game by thinking to myself about popular adventure games I had played myself. What did they all have in common, no matter the style of the game? Music, or more specifically, adding audio of some sort. To begin with, I searched up online for some royalty free adventure music, and I eventually decided on a track called "Reflected Light" (Link is here: https://pixabay.com/music/beautiful-plays-reflected-light-147979/). Once that was done, I added an audio source component into my Player game object, ticked Loop, and adjusted the volume accordingly. Satisified with how the music had turned out, I decided to add in walking and running footsteps, so that my character sounded like he was running on grass. Once again, I searched up online for royalty free running on grass audio, and imported this file (https://www.fesliyanstudios.com/royalty-free-sound-effects-download/footsteps-on-grass-284 ). Once that was done, I added an audio source and adjusted the volume accoridngly, except this time, I added a script as well, to only play the audio when the "W" or "S" keys were being pressed.
______________________________________________________________________________________________________
What is an Audio Source?
An AudioSource is attached to a GameObject for playing back sounds in a 3D environment.




Comments