Make a 2D Platformer Character with State Machines in Unity

Making Movement, Controls, Animations, and Collisions for Dynamic Rigidbody 2D Characters

This course will show you how to take an animated sprite character and use it in Unity engine to setup a fully playable and animated player character GameObject. In this series, we will utilize the unity animator component & state machines to allow our character to transition from one animation like idle, run, jump, and wall jump to the next at the correct time. We will also cover how to setup character movement scripts for moving the player’s rigidbody. By the end you should have a functioning 2d platformer character with a clean state machine setup and nicely separated state machine behaviours for controlling each state (or substate machine when you want to apply one script to multiple states at once!)

What you’ll learn

  • Make a fully movable 2d platformer character using dynamic rigidbody physics.
  • Turn a spritesheet into 2d animation sequences compatible with the Unity engine.
  • Study C# coding basics for writing controls, states, and physics interactions.
  • Explore Unity engine topics for beginners game development.

Course Content

  • Building a 2D Platformer Character with a Dynamic Rigidbody –> 10 lectures • 2hr 6min.

Make a 2D Platformer Character with State Machines in Unity

Requirements

  • General programming knowledge is helpful but not required. Unity scripts are written in C#.
  • Download and install the Unity game engine and a script editor of your choice. Visual studio is the standard and can be easily installed along side Unity during the installer..

This course will show you how to take an animated sprite character and use it in Unity engine to setup a fully playable and animated player character GameObject. In this series, we will utilize the unity animator component & state machines to allow our character to transition from one animation like idle, run, jump, and wall jump to the next at the correct time. We will also cover how to setup character movement scripts for moving the player’s rigidbody. By the end you should have a functioning 2d platformer character with a clean state machine setup and nicely separated state machine behaviours for controlling each state (or substate machine when you want to apply one script to multiple states at once!)

  • Create a 2d platformer character with movement scripts for running and jumping around your level.
  • Especially meant for beginners who want to build their first controllable characters inside of the Unity engine.
  • Sprite based animation setup. How to create animation clips
  • In the course we’ll set up and make running, jumping, double jumping, wall sliding, and jumping off of a wall slide.
  • Same basic principles can apply if you need to make attack states, dashes, slides, or the like in the future.
  • Using the Unity State Machine System.
  • Transitions, State Behaviour Scripts, and Substate Machines
  • How to talk to and from the animator when getting player input and assigning forces to your Rigidbody character
  • How to Create Tilemaps and setup collisions with the ground and walls
  • Let states hold code that are specific to that state to separate tasks.