Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
2D Platformer Game Development Crash Course for Unity 2022
Rating: 4.5 out of 5(17 ratings)
172 students

2D Platformer Game Development Crash Course for Unity 2022

Unity GameDev from Scratch to Create Platformer Characters and Game Mechanics
Created byChris Tutorials
Last updated 11/2022
English

What you'll learn

  • How to Create a Platformer Player with Ground & Air Sword Swing Combos and a Ranged Bow Attack
  • Make ground and air enemies with basic enemy AI
  • Build a game level with tileset and tilemap tools
  • Setup up player input with the InputSystem package and UnityEvents
  • Learn about animation state machines and using AnimationStateBehaviours to control complex characters
  • Create a health pickup item to keep your player alive

Course content

1 section26 lectures7h 30m total length
  • Project Setup5:58

    Finished project is provided in the materials. You will still have to install the art packs as shown in 'Installing Art Packs' lecture.

  • Installing Art Packs8:23

    Finished project is provided in the materials. You will still have to install the art packs as shown in 'Installing Art Packs' lecture.

  • Installing Unity Packages and PlayMode Settings3:17
  • Adding Background Image and Layer5:20
  • Player Input Left and Right Movement20:22
  • Cinemachine Follow Camera3:29
  • Parallax Background8:40
  • Controlling Walk, Run, Idle Animations27:41
  • Managing Animator Parameters with Static Strings3:34
  • Ground Tileset14:36
  • Jumping and Air Movement33:34
  • Attack Animation and Movement Lock14:30
  • Making a Knight Enemy Move22:44
  • Enemy Attack AI and Animation States22:40
  • How to Make Characters Take Damage17:18
  • Attack Hits with Damage and Knockback43:16
  • Knight Enemy Improvements14:46
  • Create Floating Damage Text on UnityAction22:08
  • Make a Healing Pickup Item11:49
  • Combo Sword Attack16:22
  • Make a Bow and Arrow Ranged Attack22:21
  • How to Make a Flying Enemy45:55
  • Aerial Sword Attacks Setup12:27
  • Export Game Build and Make a Exit Game Action7:35
  • Sound Effects and Music16:42
  • UI Health Bar & Final Quick Fixes25:10

Requirements

  • I recommend using Unity 2022.1.20f for the project to avoid problems from have a different editor version
  • You should have some knowledge of how to program to understand basic concepts. This course is code heavy. All code is done live on screen so you can copy directly when needed.

Description

Learn how to create a 2D platformer game inside of Unity 2022. This course shows you how to build player and enemy characters for movement and combat within a side scrolling platformer game. Much of the course is dedicated to understanding Animators in unity as we build out full animation state machines for both the player and enemy characters. To go along side the states and transitions are StateMachineBehaviour scripts which let you queue up changes and effects for your characters when entering or leaving states. For instance, this is very helpful when you want to make a character jump upon entering a jump state when the jump action is pressed on your keyboard. To make player input go smoothly, we use the new InputSystem to set keybinds to actions and respond to those actions triggering through UnityEvents. To make the game more complete, we make use of Cinemachine follow camera, parallax background, health pickups, sound, and tilesets to continue building out our demo game. Many of the scripts are intentionally designed to be reusable like the Damageable script which lets any character take damage or be healed on triggering events.


The final course project with all source files are provided in the course for you to use or reference in any of your own projects!


  • Player Controller, Movement and Physics

  • Animation State Machines for Players and Enemy Characters

  • Dealing Damage to Player and Enemy Characters

  • Working with Tilemaps and Tilesets to Build Game Levels

  • Basic Enemy AI Patterns

  • Ranged Attacks

  • Aerial Attacks

  • Combo Attacks

  • AnimationStateBehaviours for triggering changes on events

  • Healing Health Pickups

  • Music & Sound

  • How to Export a Game

  • Cinemachine Follow Camera

  • Input System Actions and UnityEvents for handling player input

  • Floating damage text

  • And more...

Who this course is for:

  • Aspiring game developers
  • Looking to make a 2D, Platformer, Pixel Art, or Unity Engine Game