03/02/23 - Unity Work

In today's lesson, we were learning how to use Unity Engine to create games. We did this today, by first of all downloading a folder full of assets, and creating a new document within Unity, where we could then use these assets later on.

On this new document, we first had to add in different components to our character, including a Capsule Collider and a Rigid Body, to make our character playable. We then had to select the Main Camera option, and dragged this camera into the place of where the eyes of our character would normally be. We then had to take this Camera folder, and place it into our Player folder.

Then, within our main folder options, we opened our Scripts folder, and within this, created two new folders named Movement and Camera Movement, and within these we would create the programs to move our character as well as how the camera can move and see different things.


We then had to open the coding software Visual Studio, and had to type in our code, which would allow our character to have movement. This meant that our character would be able to move forwards, backwards, and side to side. After this, we had to open the coding software in our other folder, to allow camera movement, so that our characters could look around.

We then returned to our movement folder code, and added in the code that would allow our character to crouch and sprint, by changing the speed and height of our characters, being applied only when a certain button is pressed.



To finish off the lesson, we had to make a basic obstacle/parkour course on our project world, to trail all of our code, to make sure that all of the features that we added into it worked well.

Comments

Popular posts from this blog

07/12/23 - HTML And Figma Alterations

10/01/24 - Final Game Session

08/01/24 - Presentation, App Updates And Game Run-through