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

Self-hosted ngrok alternative using FRP and NGINX

CS371p Fall 2020: Jesse Huang

PC Apps You Didn’t Know You Needed

Introduction to Operating System

My Understanding of Ruby

MemLabs CTF using Volatility Labs 1–3

Web Development With HHVM and Hack 5: Vectors

Programming as a beginner

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

Learn to code by making 2 D space shooter.

Coding the exit for full screen

Platformer: Collectible & Status Bar