Skip to main content

UNITY TUTORIAL 05

Laptop with program code from Freepik.

In this week's Unity tutorials, I began making an endless side-scrolling runner game. The first set of tutorials showed me how to make the player jump by pressing the space bar as well as adjust the character's mass, jump force and the scene's gravity. I added an if-statement to the PlayerController script to prevent the player from double jumping. I learned how to make the background and obstacles move left towards the player as well as set the speed in which they move. I reapplied what I learned about making obstacles spawn from previous tutorials. 

In the second set of tutorials, I learned how to make the background repeat so it does not disappear along with the obstacles. I also learned how to make the background stop and have a "game over" message when the player comes into contact with an obstacle. I learned how to stop the obstacles from spawning after the player hits an obstacle. I edited the MoveLeft script so the obstacles would be destroyed once they are off the player's screen.

The third few tutorials introduced me to the player's animation controller which include different states and transitions. I edited the animation controller to allow the character to run in a static position. I added a jumping animation so the player is not running when in the air. I learned how to make the player fall over when they collide with an obstacle and how to prevent them from being able to jump when unconscious. 

This week's tutorials were easy to follow. I found the animations interesting and they made the game look more realistic. Some of the skills I learned in these tutorials can be applied to my own project because I will be making an infinite runner game.

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

INTRODUCTION TO SOMEONE WHO'S JUST VIBING

HEY!! Look who made it to her second year of college!! Me, Nadine, I did!! Yeah, I'm even more surprised than you are.  Happy girl illustration by 94MLK_ on Twitter. Saved from Pinterest . Last year wasn't too bad, but that was up until the whole country went into quarantine and I began to fear for my college career. I was constantly on the verge of giving up on my assignments but I would like to thank my friends for not allowing that to happen. I'm so glad I get to start year two with them and hopefully we'll make it to the end together too!  Despite the stress, there are a few pieces of work from year one that I'm proud of. I liked the websites that I created for Web Development 1 and 2, the video I edited from Introduction to Digital Media mission 3 and the advertisement poster I made for Digital Photography. I hope to produce better work this year.  Personal screenshot from the index page of my web development 1 project. Personal screenshot from the index page ...