Skip to main content

Tutorial 3

  

Unity Tutorial 3

I really had a lot of difficulty with the Unity Tasks in tutorial 3. The collectibles was a cool edition to work with but I constantly started having trouble with interacting with Health collectibles but as much with the damageable's. Along the way I had lost a lot of time whilst trying to figure out the ChangeHealth function as my code was correct and similar to the one on the tutorials but the instantiate would still not work and this made me restart my code from the beginning.

I had to skip due to not being able to fix it or find a solution but continuing on with the tutorials, I then realized that the code had indeed worked and my character was able to collect and get health from the collectible.

I created the first enemy for the game : a robot and the script came out very well, I was able to get the enemy to damage my character and to also move along a spot on the map as an NPC.   


Comments

Popular posts from this blog

Tutorial 6

  Unity Tutorial 6 In this tutorial, I had to create a health-bar for Ruby, this was really a interesting way to learn how health-bars are made on Unity and creating one that came out really well was even better as it was in-sync with the c# script "RubyController" and "UIHealthBar" from the beginning. The use of a UI or User Interface was another experience, very difficult but helps the game stand out. Next what I had to do was create an NPC, a frog who ruby would talk to by coming up to them and pressing "X" and then a dialog box which was created using UI~ Canvas~ Text to display a message warning Ruby about the robot.  It was cool to learn how to interact with NPC's and allow them to speak to you or send a message. The method known as raycasting which is basically a collider lets this happen.

Tutorial 2

   Unity Tutorial 2: World Design For the second tutorial of the Unity tasks, after creating the tilemaps by splicing them and laying down the ground and the pavements in the games world, it was now time to decorate it. Using all the sprites provided, I laid the land out with trees, grass, metal boxes etc.  The physics system as it was suggested in the tutorials was the force of the movements from the characters within the game and controlling the gravity which pulls it down, the force applied from pushing and friction when moving on the ground. In this part, I mainly fixed the way in how Ruby moved throughout the world and what boundaries she couldn't move through. My favorite part was adding the tilemap collision, by selecting the tilemaps with water on them I was able to create a box collider without selecting them all individually and preventing Ruby from walking on water. I didn't struggle as much throughout these tasks I rather enjoyed them.

Tutorial 4

   Unity Tutorial 4 All the sprites and characters have now been added, all that was needed now is the aesthetic touch that will make this a proper well designed game. For the Tutorials 4 I started on the sprite animations towards the enemy/ the robot and this was a tough and long task. Creating a whole animation from scratch just for one of the sprites was very challenging but the outcome came out really great and the movement is perfect no lags. Getting the Ruby animation through the materials provided by the asset store was very helpful. Splicing the sprites has become a very common thing within building a 2D game, I was able to use each sprite that had the robots movement and join them together in the animator window so that the animation would get him walking up, down, left and right. Although the blend tree which would allow the robot to move in any kind of direction made this possible instead of being frozen in the one spot.