Skip to main content

Unity Tutorial 06 (Ruby's 2D Adventure)

 



Unity Tutorial 06 (Ruby's 2D Adventure)



This is the sixth tutorial of the tutorial tasks in this course, in this tutorial I learned how to visually style the game, add a user interface and make a HUD (Heads-Up Display). A HUD is basically an image overlay in the game which illustrates the player's health, items, timer, objectives and player avatar etc. Another part of this tutorial is adding interactions within the game so that you can interact with other characters of the game. In this case, I made an interaction with a frog character whose the game objective of what to do in the game which eliminates the enemies.



The way how I went about making these is as follows, 



This was the process of making the health bar which is a gold stroke, with a blue bar and the Ruby Character avatar on the left

The code for the User Interface for the Health bar

This was the end product of the HUD display in the game of the health bar 

This was the process of making the interaction with the frog





In the end, this is how it turned out, I made a script in visual studios where you press the key "G" near the frog to be able to interact with him

This was the script of the interaction script


The thing I want to learn in the next tutorial is being able to put audio in the background and see a step by step guide to uploading my game to Itch.io


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...

Tech Task: Animated GIF Maker

  Tech Task: Animated GIF Maker  This is a GIF that I made with Spongebob Squarepants and Patrick