Blog

Tutorial · 13 Nov 2026

Make your first 2D game in Unity from scratch

Step-by-step tutorial with Unity 2020: endless background, animations, jumping, obstacles and a menu. The video is in Spanish.

A tutorial to make your first 2D video game in Unity from scratch, with Unity 2020. It starts with the basics of the editor (hierarchy, project, console and inspector) and ends with a game you can already play: a character that runs through an endless map and jumps over the rocks coming at it. The video is in Spanish.

Along the way you'll see how to:

  • Import sprites and split the elements of an atlas.
  • Repeat the background forever with a script.
  • Animate the character (run and jump) and move from one animation to another with the Animator.
  • Use BoxCollider2D and RigidBody2D for collisions and physics.
  • Jump from a script and know if the character hit something.
  • Move the obstacles and detect the hit with the player.
  • Build menus with a Canvas.

Resources

Sprite animations

The atlas frames each animation uses:

AnimationFrames
Run0, 1, 2, 3
Jump4, 5, 6
Hit8, 9, 8
Stab10, 11, 12
Punch13, 11
Run14, 15, 16, 17