My journey becoming a Unity game developer: 2.5D Infinite Runner-Moving Platform with player

Player can stand on the moving platform without falling off and jump off the platform as well.
Main Camera is a child of the Player object.
Game changed to 2D view and Aligned with View.
Rigidbody added to the Moving Platform.
Moving Platform variables assigned.
Using Fixed Update to handle the platform’s movement.
OnTrigger() function used for when the player lands on and off the platform.
Moving Platform script assigned with the other platform’s positions.
Moving Platform moving, but rotating out of the screen.
Use the Constraints to Freeze Rotation on the X,Y, and Z-axis of the Moving Platform.
Player can’t stay on the moving platform.
Is Trigger turned on for the Capsule collider of the player which allow them to stay on the platform.
Player can stand on the platform without falling off.
Modularize the Moving Platform and its target objects within a new Moving Platform game object.
2nd Moving Platform added to the scene.




Learning to become a Unity game developer.

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

Recommended from Medium

Integrating Sitecore’s Azure Search Provider

Creating and Publishing Private NuGet Packages using Jenkins with Auto version

Testing in CI pipeline over K8s Using Jenkins — Part 2

Xamarin Android Meets Reactive World

People brag about being perfectionists, myself included.

Making Python code beautiful

Clean Code 4: Make the database do the heavy lifting

Who we are?

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
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.

More from Medium

My journey becoming a Unity game developer: 2.5D

Level Design in Unity Part 1: The Floor

In just 4 steps, Make a modular moving platform in Unity

How to Switch Between Cameras with Cinemachine and Timeline