Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building Unity 2D Platformer for Beginners Step by Step
Rating: 5.0 out of 5(2 ratings)
1,451 students

Building Unity 2D Platformer for Beginners Step by Step

Discover How To Create a 2D Platform Game in Unity 3D from Scratch Even If You Have No Experience!
Created byAmeen Bineabade
Last updated 6/2024
English

What you'll learn

  • Have hands on experience building a 2d game level.
  • Be able to program 2d character movement, AI enemies, and environment scripting such as moving platforms
  • Gain an understanding of the game development process.
  • Learn how object oriented programming works in practice.

Course content

1 section21 lectures5h 32m total length
  • Preview of the game5:24

    Learn to build a Unity 2D platformer from scratch using tile palettes and tile maps, with Cinemachine camera follow and health feedback like health bars and screen shake.

  • Improting Assets And Adding Our Player13:13

    Learn how to import assets, organize folders, set up a player with animations, and implement a rigid body and collider, ground tiles, and scene layout for a Unity 2D platformer.

  • Player Movement10:48

    Learn 2D player movement in Unity by setting run speed, reading horizontal input, applying it to a rigid body 2D in fixed update, and flipping the character to face direction.

  • Jump11:24

    Enable jumping in a Unity 2D platformer by adding a ground check object with a ground tag and ground layer, and control jump height by holding space, visualized with gizmos.

  • Adding Animations11:52
  • Player Attack18:55

    Implement a three-hit sword attack in a Unity 2D platformer by creating attack animations, configuring animator transitions, and coding a combo-based player attack in C#.

  • Finishing Attack9:30

    Add and configure an enemy skeleton as a 2d platformer foe, assign tags and layers, set a collider and attack range using physics 2d, and test hits against multiple enemies.

  • Skeleton Patrol15:09

    Unity 2D skeleton patrol moves left and right using a dedicated script, with a rigidbody, move speed, and minX/maxX bounds; implement patrol logic, direction flipping, and walking animations.

  • Skeleton Hit And Death14:08

    Create a skeleton enemy in Unity by slicing sprites, setting death and hit animations with triggers, and implementing an enemy health system with damage, collider and rigidbody handling.

  • Skeleton Attack27:24

    Learn to implement a skeleton enemy in Unity 2D, enabling patrol, detection, and timed attack sequences with animations, damage, and health handling.

  • Finishing Players Attack31:30

    Learn to finish a player attack system in a Unity 2D platformer by adding air and ground attack animations, bow shoots, arrow spawning, and damage handling with cooldowns.

  • Mapping15:43

    Create a town map using tile maps, sky, clouds, and ocean layers; build ground colliders, organize tile palettes, and set ground tags for a Unity 2D platformer level.

  • Camera Follow17:57

    Configure a 2D Unity platformer with ground layers and colliders, remove friction, and implement Cinemachine camera follow with damping, look ahead, and dead zones to keep the player centered.

  • Making The Dragon28:56

    Learn to build a 2D Unity platformer dragon enemy with idle and attack animations, turn to face the player, and fire a prefab fireball via C# scripts and Rigidbody2D.

  • Camera Shake15:25

    Learn to implement camera shake in a Unity 2D platformer by scripting amplitude and frequency, applying noise to the main or virtual camera, and triggering shakes on hits.

  • PlayerHit15:19

    Build a player hit feedback system in a Unity 2D platformer using a UI image on a canvas with a screen-space camera, flashing red to white during invincibility.

  • Player SoundFX18:47

    Learn to implement a Unity sound manager singleton to play player sound effects, including footsteps, hits, sword hit, and jumps, with configurable volume and pitch via shared audio sources.

  • The Rest of SoundFX.5:44

    Explore implementing and managing sound effects in a Unity 2D platformer, including fireball and arrow sounds, using a sound manager, public audio clips, and volume control.

  • Theme Songs And Dragon Death11:02

    Implement a theme song manager to play random music across levels, control audio with a lockable song set, and trigger dragon death animations and sounds within a Unity 2D platformer.

  • Health UI, Players Death And Health Pot20:28

    Build a health UI with a canvas and slider, link it to player HP, implement death animation, and add health potions in Unity 2D.

  • Gameplay Manager13:37

    Learn to create a gameplay manager as a prefab that tracks enemies, detects level completion, and loads new scenes using scene management, with optional level naming and singleton patterns.

Requirements

  • Basic Unity knowledge
  • Mac or PC capable of running Unity 3D

Description

This course teaches the new 2d tools and features of Unity 2017, including the Tilemap and Timeline Editor tools. These features are completely new to Unity and allow developers to develop 2d games quicker and more effectively. This course is geared towards beginners but is a great choice for any Unity developer looking to learn how to use Unity’s latest tools and features.

The Tilemap Tool allows users to paint sprites onto a grid to facilitate rapid and more precise prototyping and 2d level design. The Timeline Editor, powered by cinemachine, allows developers and animators to easily coordinate complex cutscenes by providing one timeline that can visually layout the animations of several game objects at once.

In this course, we will use these two core features of Unity 2017 to build a 2d platformer game level. We will build a splash screen, animated cutscene, playable third person character, artificially intelligent enemies, in-game collectibles, and a 2d level. By the end of this course you will have hands-on experience implementing all of these game features using Unity’s latest 2d tools.

The full project made in this course is attached as a resource to the course. So if you get stuck for any reason, you have both the full project as well as myself that you can reach out to for help!

Who this course is for:

  • Anyone Wanting To Learn How To Set Up Unity and Create a 2D Platformer Game