Skip to main content

Unity Tutorial 07 (Ruby's 2D Adventure)

 



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 the C# Script I had used to make the audio clip play for the sound to play





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

Popular posts from this blog

Unity Tutorial 04 (Ruby's 2D Adventure)

  Unity Tutorial 04 (Ruby's 2D Adventure) In this tutorial, I learned how to add sprite animation to my characters so that it gives my characters the ability to move their arms and legs to make them more realistic and I also learned how to fire projectiles at enemy characters to kill and stop them from moving and affecting Ruby.  I learned how to use the animation window, this was the first time I had ever used the animation window it was all new to me, I was just playing around with it at first to get used to the controls. I found some difficulties in trying to get the projectiles to actually shoot, I thought for some time the code was perfect. I put in the code the right way but when I did that, every time I tried to shoot the projectiles the game suddenly freezes which was a problem for about an hour. But I finally fixed it since there was a tiny bit of code misspelt. That was the first problem I had making this game. The things I want to learn in the next tutorial are lear...

Alpha

  Alpha  This is my progress, I have updated the HUD and I added a few more features in the environment What is going good? So far so good, the game is coming along well. There are a few scripts I put in such as collecting coins, player movement, environment design, generating random levels and level boundaries.  The Technical Difficulties  But there are a few technical difficulties I am going through which is every time I try to put a rigid body component into my player when I added the jump feature into my player controller script, the player for some reason falls through the map and I tried many times trying to fix the issue but I will try my very hardest to fix it. I also need to add in collision detection with the obstacles and when the player does collide with one of the obstacles it will say game over and you have to restart again. Those are some of the difficulties I am facing, I will try and reach my lecturer or one of my peers in class to see if they know t...

Introduction to a Future Success

  Introduction to myself :)  This is me Nasim Slavotic :) Hello! My name is Nasim Slavotic, I am 20 years old and I am now a 2nd-year student in TUDublin Blanchardstown doing Creative Digital Media. I am from Dublin and I work part-time in my dad's butcher shop here in Blanchardstown in Coolmine near the post office.  What are my hobbies?  In my free time, I like to go to the gym. Also, I like to go out and take pictures with my camera and make videos on my Youtube channel (NaSiM101) which I took a break from for a while from the pandemic but I do love to brainstorm new ideas for videos and discover new trending things. I also love going out with my friends but now I am starting to go back out again since the pandemic had closed everything before but now everything is coming back to normal slowly but surely. When I'm bored I like to head on Photoshop and Illustrator and just make whatever comes in my mind.  https://pxhere.com/en/photo/1621191 Favourite Foods...