Making the player jump

2D Game Design with Unity

🕑 This lesson will take about 7 minutes

In this lesson, you will learn how to code a script written in the C# programming language that can make the player jump in a 2D game. We will implement basic jumping in this lesson and then improve the code in the next lesson to only allow the player to jump when they are touching the ground.

Game art, tiles and sprites from the Free Pixel Space Platform pack are used in this lesson video and can be downloaded from the Unity Asset Store.

Is YouTube blocked at school? Watch on Google Drive.

Sample code