2D Platformer in Unity - Player Animation Tutorial

Опубликовано: 06 Июнь 2026
на канале: Kozmobot Games
925
13

In this video, I will teach you how to make a 2D platformer in Unity. This video is the second part of 2D platformer tutorial series, it will cover the basic functions of the animator, a thing that makes your player change animations once it completes a specific expression. The clause for every animation is connected to programming: it corresponds with if statements, so it is considered valuable for defining when the player has to change its animation. The animation states are displayed within the animator, they are changed by an integer, that changes its state according to player's actions:
0 - idle, 1 - running, 2 - jump, 3 - falling

These states, on the other hand, define the player's animation clips. It tells Unity which state to assign to the player. To make Animator work in Unity, you need to introduce it in the C# script of your player.

This video is also a perfect entry for the future of 2D game development. Also, C# programming is something I like to do, so this video contains some C# lines that you should know about. Movement Script in C# is a perfect example of what you can make as a beginner in Unity.

I have been making a break of Unity tutorials and it is time to do something new: 2D platformer that I used to work on last month. I was at my summer holiday so I was not doing anything for my channel, I was taking a break.

The assets will be available to download. All you have to do is to unzip the archive and copy the assets in a separate folder, then in Unity you should right click and select Import Assets. The imported assets have to be set to Sprite (2D and UI) and sprite mode has to be Multiple. Any multiple sprites have to be sliced and then you can have a sprite sheet from a single image, rather than importing multiple images at once.

Support the Creator of Kozmobot on the social networks!

CHECK OUT MY WEBSITE: http://kozmobot.com

INSTAGRAM:   / kozmobot.channel  

TIKTOK:   / kozmobot.channel  

Music in video: Satya Yuga - Jesse Gallagher