Unity Tutorial 1






For this weeks task the Unity tutorials for beginners started. We were to create a small piece along side the tutorial for a moving car on a road to hit boxes and control speed and camera angles. 

The start up of the experience was quite full on and overwhelming with the coding names but getting into the tutorials getting down to the basics seemed reasuring. I took screenshots of some in action like the obstacles you can choose from as you download a basic assets pack for the scene. As you can see I've renamed the obstacles in order and kept them organised.



It was fun being in a creative mode and a live pre-view mode seeing your editing in action. The arrows around the car in the green, red and blue show the X, Y and Z axis, this is placement and direction of obstacles and the vehicle on the road. You have to create a folder called Script and from there you have your C# script within it, this is what will help us move the car. Unity uses C# coding for gaming. After you alter a code in your external app, it would change the function in the game, but a few mistakes I made was, I forgot to save in brackets my code and wouldnt work. 




Visual Studio Code or Brackets was used to create the code which would help us alter the speed and mass of the car and the mass of the obstacle, there is a physics element to this but its very straight forward as the mass is mainly weight. So the boxes are a Mass of 15 and the car is Mass 1000, the boxes are most likely to move a lot easier than the car due to their lighter mass.

Another cool element is the camera angle and view. The camera can be changed to be seen at a game view, as what the player can only see aka the game world, but we can see the whole editing scene also. You alter the camera to follow behind the car as most angles are like that for car type games, so Y axis would be set at approx 7 which is up behind looking down at the car instead of set at 0 being in the center of the road. 





I really liked working with the tutorials for Unity as it's really interesting to see how games are made and cant wait to start on a project designing my own game! 









































Comments

Popular Posts