Unity Tutorial 05
Image Source In Unity tutorial 5, lesson 3.1 we start off by setting the background for our game, we then we set up a player character also adding a rigid body component and a box collider, we also create a playercontroller script. Before we start the game we make the player jump and then we make the player jump by pressing the spacebar. Once we can see that our player jumps as we press spacebar, we then tweak the the jump force and gravity. We then use an if-statement to make sure the player doesn't double-jump. Next we apply the MoveLeft script onto the background and create a spawn manager, we then write a function to spawn obstacles on a timer. In lesson 3.2 we focus on making the background repeat itself to make it seem like our character is moving forward. In order to make it seem like the world is rushing by, we need to reset the background objects position so it fits perfectly together. By adding a box collider component to the background we fix the back...