Thursday, April 9, 2015

Left/Right Movement with Sprite Flipping in a Unity 2D Platform Game (with JavaScript and C#)

Left/Right Movement with Sprite Flipping in a Unity 2D Platform Game (with JavaScript and C#)

This is part 3 of a series of tutorials for Buiding a 2D Platform Game in Unity.

A character which can jump and double-jump is great, but we need a little more action. In this tutorial, our actor is going to be able to also move left and right. This tutorial shows how to use GetKey to handle the left and right arrow keys for movement. Then we add a function to flip the sprite horizontally, so it appears to face in the expected direction.


Tuesday, March 31, 2015

Jumping and Double Jumping in a Unity 2D Platform Game (with JavaScript and C#)

Jumping and Double Jumping in a Unity 2D Platform Game (with JavaScript and C#)

This is part 2 of a series of tutorials for Buiding a 2D Platform Game in Unity.

An essential part of a platform game is the ability to jump. Sometimes you need to jump over barrels, onto mushroom people, or just jump up to the next platform.

Wednesday, March 18, 2015

How to setup a Unity 5 project and add Kenney's “Platformer Tiles”

This is the first video in my Unity 5 2D Platform Game Development Tutorial series.

Many of the existing 2D Platformer tutorial videos are outdated with Unity 5, and the C# (c-sharp) and UnityScript (JavaScript) files need to be updated. Also, many of the tutorials are for either C# or UnityScript, but not both. You may like C#, but the tutorial you need may be in UnityScript. Or vice, versa.

I will run through building a 2D Platformer in Unity 5 and I'll be showing how to do the steps in both scripting languages (both C# and UnityScript/JavaScript).

Unity 5 2D Platform Game Development (Mac), Part 01 Sprites Collision RigidBody2D