Unity Tutorial 07 (Ruby's 2D Adventure)
This is the 7th tutorial of Ruby's 2D Adventure and this is the final tutorial of the game so I am nearly finished with the entire game. Throughout the game, the game has been silent, there hasn't been any audio in the game. There weren't any sound effects or music so in this tutorial, this is what I had learned when it comes to the audio.
I used enemy walking sound effects for the enemies, background music and sound effect for the projectile shooting. The way how I was able to put the audio in the game as I made an empty game object and added an Audio Source Component to it. I dragged and dropped an audio file called 2D MUSIC LOOP and which was provided by the Unity website. I had to also make sure I clicked on the loop option.
After I was finished with the entire game I exported the game from Unity and I uploaded the game to Itch.io for other people to play my version of Ruby's 2D Adventure.
This was a great experience and I can honestly say I am happy with the outcome even though there have been some problems with the script sometimes I eventually figured out the problems. This experience taught me a lot about problem-solving, you have to figure out why a particular code doesn't work.
This was a C# Script I had to write to make the collectable items make a sound every time you collect an item from the floor. |
Comments
Post a Comment