Player Movement
2D Game Design with Unity
🕑 This lesson will take about 25 minutes
In this lesson, you will learn how to code a script written in the C# programming language that makes the player move in a 2D game. We will implement horizontal movement in this lesson and implement the ability to make the player jump in the next lesson. Follow the step-by-step instructions in the video below and then scroll down to view the sample code.
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
Next lesson: Making the player jump