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

Real-Time Exchange Payment System Design

BitPost : Methods vs Functions in Python.

Pivotal Cloud Foundry- An Easy Cloud Development platform

Rock Paper Scissor Game With Python

Theory of computation: model of computation and Deterministic Finite Automaton

Implementing Agile methodology in Zomato App…

Visualise surface charges of your protein 3D structure

Surface charges of a protein at two different pH’s. Colour ramp from blue to red, reflects negative to positive charge.

Donald Trump’s First Press Conference In Months As Told By ‘SNL’

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

Balancing out the spawning of enemies and powerups

The right way to wrap your UI inside the safe area — Unity

Cinemachine: Switching Cameras

What layout works for me in Unity