Skip to main content

UNITY TUTORIAL 02

Young person playing with computer illustration from Freepik.

In this week's set of Unity tutorials, I finished creating the driving simulator from last week. I learned how to give the player control of the vehicle so they can steer using the arrow keys on their keyboard.  I also learned how to make the vehicle rotate when turning, rather than sliding left and right. 

Following these tutorials, I completed a challenge where I had to correct bugs within a plane flying game and then add any missing features. This challenge involved making the plane go forwards instead of backwards, slowing the plane down to a manageable speed, making the plane tilt up and down when the player uses the arrow keys, repositioning the camera so that it is beside the plane and making the camera follow the plane as it moves. After I edited the script to allow the camera to follow the plane, I found that the camera did not actually end up doing so. I took another look at the script but everything seemed to be correct. It turns out that I forgot to add the script as a component in the main camera's inspector. After fixing this problem, the camera was able to follow the plane. There was a bonus section where I had to create a new script and apply code to allow the plane's propellor to spin. I found this part a little challenging but referenced the tutorials from the driving simulator to guide me. 

Personal screenshot from Unity3D of the challenge.

I think that this challenge helped me apply the skills that I learned from the driving simulator tutorials. I don't feel as nervous about creating my own game for my project anymore because I was able to complete this challenge. However, more practice would be very beneficial. 

Comments

Popular posts from this blog

UNITY TUTORIAL 04

Various devices illustration from Freepik . This week I completed the final set of tutorials to create a simple animal feeding game. I learned how to make animals spawn on their own rather than having to click "S" to do so. This involved creating a custom function and moving the if-statement under "void Update" to this new function. I also learned how to make the animals spawn after a certain timeframe. I learned how to add box colliders to the animals and how to edit the size of these box colliders. Moreover, I was taught how to make the animals and pizza disappear when they came in contact with each other. I added an else-if-statement that triggers a "Game Over" message when an animal surpasses the player without being fed.  Following this, I completed a challenge in which I had to correct a game similar to the one in the previous tutorials. The final product should allow the player to spawn dogs to catch falling coloured balls. The dogs were initially a...

TECH TASK: CHEEZBURGER

 Meme created using the Cheezburger website. Image from Cheezburger site.