Setting up a platformer project in Unity

The exercise here demonstrates the process to setup a simple platformer game project in Unity.

  • Go ahead and create a 3D project from the Unity hub and save it at the appropriate location.
  • Once opened, add a 3D cube and stretch it on the x axis to make it resemble to a platform object.
  • Make it a prefab and add a few of those prefabs in the scene.
Unity
  • Now, to add a player object, use a 3D capsule in the project.

Note: The Unity tool box has an inbuilt component for mimicking physics. The project here will be customizing its own physics and hence, do not add a collider or a rigid body to the player object.

  • Add a character controller to the 3D capsule object and place it on the exact z dimension as the platform so that the player will be able to jump/move on the same level.
Unity
Unity
  • Lastly, a platformer project always has collectible objects. So, add a 3D cube on the same z level as other objects to mimic a collectible object.
  • Add a collider and a rigid body to this object. Also, untick the gravity option so that it does not fall off.
  • Once added, make a prefab of it and then, add a few of those collectibles in the project.
Unity

That should be good to get going with the platformer project :)

Thank you very much

--

--

--

Work in Progress.

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

Recommended from Medium

How to Install MongoDB

Flutter Apps, Hide Your Passwords

Tasks we solve with Qt

How to build software that changes people’s lives

My Python Development Workflow with pyenv

What’s So Great About Java? Here Are Three Things!

Static member VS Object Member by a self -taught developer

The results don’t look like what we saw on

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
Samarth Dhroov

Samarth Dhroov

Work in Progress.

More from Medium

Unity new Input System : Tips to create a “clean” Player Input System(Part XI)

Player Movement Update

Tessellation in HDRP

Benefits of Prototyping Without Assets