Creating a 2D Game in Unity 4.5
4.5 (769 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
32,744 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Creating a 2D Game in Unity 4.5 to your Wishlist.

Add to Wishlist

Creating a 2D Game in Unity 4.5

This series shows the entire process of creating a fully featured, polished, 2D game in Unity 4.5!
4.5 (769 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
32,744 students enrolled
Last updated 4/2015
English [Auto-generated]
Price: Free
  • 17 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Manipulate sprites in Unity
  • Create a 2D Character Controller
  • Create a Camera Controller
  • Create a a Level Manager and Point System
  • Implement the concept of Health and Damage, and build a simple AI script for controlling enemies
  • Incorporate Animation into the levels
  • Build a fully functioning Level in Unity
View Curriculum
  • This series expects a beginner-level understanding of C#
  • The free version of Unity 4.5 or higher which you can find on Unity's homepage
  • A very basic understanding of Unity’s interface.

This series shows the entire process of creating a fully featured, polished, 2D game in Unity 4.5! We show many of Unity's 2D features, such as the sprite renderer and editor - as well as animation, sound, custom character controllers, and more! At the end of the series, we wrap up by constructing two fully featured levels for our game.

The purpose of this series is to lead by example; and as a result, everything we discuss will be put to immediate use in the form of completing the Level.

Who is the target audience?
  • People completely new to Unity can use this series as an accelerated introduction to the beginner to intermediate features of the engine.
  • People who have never even touched Unity before
  • I wouldnt reccomend this course to anyone looking for advance techniques
Students Who Viewed This Course Also Viewed
Curriculum For This Course
38 Lectures
Tile Placement
4 Lectures 02:24:57

This video overviews the course and shows a sneak peek of the game we will be building.


In this video, we start learning how to cut up sprite sheets and place individual sprites in the world.

Intro to 2D

In this video, we'll cover Object placement and put together some prefabs for our round tiles and for our player so that we can combine our sprites into objects and reuse them later.

Prefabs and Player

This video shows the creation of a moving platform script. Sounds basic? Well, in addition, we add a simple Unity editor extension that allows us to visualize our platforms' paths in the editor itself!

Moving PLatforms
2D Character Controller
10 Lectures 04:18:27

We start with a conceptual overview of our controller,and wrap up the video by creating our class and method stubs to be filled in later.

Stubbing out our Classes

We make our level ready to be used with our custom character controller. That means we have to create the proper colliders for our tile prefabs.

Getting our Level Ready

We take a look of how to correct mistakes made by using the sprite editor. Hint: it's actually pretty straightforward!

Fixing our Platforms

When we fill in our character controller implementation, we need some way to test it, right? In this video, we create the component that will handle input and tell our (currently empty) character controller what to do.

Our Character Controller

Things are going to get a bit crazy in this video, where we show how to handle horizontal movement. This may require a bit of math, but we'll walk through the entire implementation line-by-line!

Horizontal Movement

Fortunately, our vertical movement is very similar to our horizontal movement. In this video, we get the code written that handles both jumping, gravity, and falling.

Verticle Movement

Although the game we designed doesn't have any slopes in its levels, our character controller wouldn't be complete if we didn't handle moving up and down angled platforms.


Speaking of platforms, handling moving platforms actually a little more involved than what you would think! In this video, we write code that allows us to be anchored to a moving platform, no matter what mechanism the platform is being moved by. We also show a use-case for some of the event logic we wrote by writing a jump pad platform component.

Moving Platforms

Well, our character is now properly planted on a moving platform: but what happens if a platform moves *into* our character? This video shows how we can add a little bit of logic to our character controller to handle this situation.

Moving Platforms #2

In this video, we create a mechanism to modify parameters of the character controller when the player is inside a certain volume. This can be used, for example, giving different physical rules to areas marked as water.

Character Controller Volumes
2D Camera Controller
3 Lectures 01:00:59

In this video, we put together our camera controller that a) constraint to the level bounds, b) gives a nice margin for our player and c) smoothly follows our player around.

Camera Controller

Now that our camera is moving with the player, we add a nice background parallax effect.

Background Parallax

In this video, we show a quick trick to allow proper layering of our particle effects.

Levels, Checkpoints, and Points
4 Lectures 01:44:42

We start by stubbing out our level manager and placing our checkpoints.

Level Manager Stub

Now we get into the meat of the level manager by implementing checkpoints in our game.


We now put together our basic point system and have the game HUD that displays those points.

Points part 1

Finally: we create our point stars. Sounds easy, right? Well, we also have to handle the case when a player dies before reaching the next checkpoint. Instead of reloading the scene, we write a reusable system for re-setting up the level in the case of a player death.

Points part 2
Damage and Projectiles
9 Lectures 03:53:26

In this video, we implement our player health as well as the floating health bar for our player. We also write a script that can deal damage to the player, without killing him

Health and Damage

Currently, we don't have a lot of visual feedback for taking damage, or getting points. We fix that by creating a floating text manager that allows us to show bits of floating text.

Floating Text

In this video, we create our cannon object that shoots projectiles in a certain direction.

Pathed Projectiles

We will now create some particle effects for our pathed projectile: because, why not?

Pathed Projectile Effects

This video sets up the projectile system that can be shared between our player and other actors in the game.

Normal Projectiles

This video shows the creation of the MICROPHONE OF MASS DESTRUCTION! ... which is the thing that the player shoots when he fires.

Player Projectiles

In this video, we show how to use our existing scripts - both our character controller and our projectiles - to create a basic enemy AI.

Basic Enemy AI

We put our instakill and follow path scripts together to create saw obstacles in our game.

Instakill BuzzSaws

The final video in this section shows how to create health packs for our player.

Health Packs
Sound and Polish
3 Lectures 53:36

We first show how to use our camera bounds to bound our player to the level. We also allow for different behaviors depending on if the player hits the left, top, right or bottom edge of the level.

Player Movement Constraints

Now we put together some basic sounds for our game!


It wouldn't be a full game if we didn't have a start screen and multiple levels, right? So in this video, we fix that!

Multiple Levels
3 Lectures 01:36:53

This video introduces the Animation window and how to create simple keyframe-based animations. We also introduce simple animation controllers that, with a little bit of scripting, can make complex transitions between all of our states!

Basic Animations

This video simply goes through our basic set of player animations.

Player Animations

We tie our player animations together via a more complex animation controller.

Player Animation Controller
Level Design
2 Lectures 01:03:36

This video shows the creation of the first level.

Level 1

Phew! We made it! We place our objects to create our second level, and conclude the series!

Level 2 and Conclusion
About the Instructor
3D BUZZ Programming and Digital Art training
4.5 Average rating
3,683 Reviews
61,143 Students
17 Courses

3D Buzz is a company dedicated to providing the world with quality technical education over 3D animation, programming, game design, and much more. We have been producing training videos since 2001, always pushing the envelope in the development of informative lessons with an engaging and personable format. We try to make the viewer feel more like they're involved in a classroom discussion with an energetic teacher as opposed to being stuck in a dry, uninspired, run-of-the-mill training video.

But 3D Buzz is so much more than just training videos. We maintain one of the most helpful online communities on the internet. We do our very best to keep in close contact with our community, and to make sure that when you're here, you feel at home.