Monday, November 2, 2020

“Unity Tutorial 05

 This week's unity tutorial is quite different from the others as it involves the player to jump at the start, then sounds must be added. The first task to do was make the character jump up by adding to the script, however, once the character started it jump it never came down so by adding a gravity element to the script and a jump force I was able to control how fast or high the player went. I next added a new variable called a bool which is for true or false. Then by adding invoke repeating to the script it makes the object duplicate various times. Then by freezing the player in a rigid body the player will not fall over when jumping. I then added a tag for obstacles. And a new script to stop all the obstacles from coming together. I then added a new variable in the "MoveLeft" script to make sure that the obstacle to destroyed once the player has passed it. 

The last tutorial was about changing the player's animation by clicking on the player and then simply Character. The changing the speed to 1 and 1,5. Then by adding an ! to the player controller to the code it means when the game is not overdone the next piece of code.

Overall I enjoyed this tutorial as also of these aspects will be in my game and I learned how to do these actions such as jump which is what the car will be doing in my game.

ScreenShot my laptop of the game. 

1 comment:

  1. Hey Niamh,

    I have to agree that these Unity tutorials were very different from the previous ones. I do have to say though that I enjoyed the change of pace honestly I found it actually really enjoyable. I think my favorite part of these tutorials was learning how to add the animations I think they just add something to the game. My game will also have some of the elements from these tutorials in it.

    ReplyDelete