2.5D Platformer

Starting out with the a new project

Start the new project by creating a new “3D core” based project. It has to be 3D otherwise there will be some settings which won’t be implemented when Unity compiles the build. Make sure to name the project and save to the desired location within your local storage.

Starting a new project via Unity Hub 3.0 beta.

Creating the platforms:

Once Unity finishes loading, we are going create the platforms first using 3D cubes. To create these cubes, simply right click on the hierarchy and under 3D Objects > cube. Since these cubes will have the same components and settings we can create one prefab of the platform first and then duplicate them so they will have an unified setting for all.

Arranging the platforms so they are spaced out like a game level

Duplicate and rearranged the platforms into an desirable layout that can simulate a game level (similar to Super Mario). To organized all these platforms, create an empty game object and zero out the position. Then drag in all the platforms into the empty game object, this will be your folder for the environment.

Creating the Player:

For now, we are going to represent the player as an capsule. Right click and under 3D Objects, select Capsule.

To make sure that the player is on the correct alignment with the platforms, we have to set the Z position to zero.

Finally before we start scripting for the player, we can set the tag of the game object to “Player” so Unity can identify the object as an playable component.

Creating collectables:

Finally, to finish off in creating our platformer level, we are going to add in collectables (it can be coins, gems, points etc.) but we are going to conceptualize with spheres first.

Similar to how we have done the platforms, we are going to create an 3D sphere and create a prefab of it by dragging the game object into the prefabs folder.

Then we are going to make sure that the Sphere collider has the “is Trigger” function check on. Then add a Rigidbody component with the “Gravity” setting to check off. This will allow the player to check for collision and be collected, all while having the sphere be unaffected by the gravity.

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Shutdown Signals with Docker Entry-point Scripts

My favorite books et al. in 2019

Every Bug Bounty hunter should know the evil smile of the JSONP over the browser’s Same Origin…

How I learn to become an iOS developer

Why rewrite your code again and again when you can borrow it — mixins in flutter

Why rewrite your code when you can borrow it

How can I Count every word with three or more syllables in eachHow can I Count every word with…

The DevOps Imperative: Keep Up or Get Lost

Erlang, a purely functional programming lang… Wait, what?!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

More from Medium

Creating a HUD

“Game Feel”: The Hidden Language Of Games

Using Decals in Unity

ANIMATING POWERUP