My journey becoming a Unity game developer: 2.5D Infinite Runner- Player using the Elevator and Moving Platform

Player using the Moving Platform and Elevator.
Elevator panel’s collider extended to reach the actual elevator itself.
Origin and Target objects created for the Elevator to move between.
Variables for the Elevator when moving.
When the Elevator is called, is it going down or not.
Using Fixed Update() and MoveTowards() functions, check IF the Elevator is going down or up.
Using Fixed Update() and Lerp() functions, check IF the Elevator is going down or up.
Using OnTriggerEnter(), check IF the Player is entering or exiting the elevator.
Variables to check on the panel’s button and the Elevator itself.
Gain access to the Elevator object, and checking IF the elevator exists.
When the Player is inside the Panel’s collider, checking IF the Player pressed the button to call the elevator.
Moving platform setup.
Setup the Moving Platform to move from Point A to Point B.
Platform moving from Point A to Point B with the player on it.
Player using the elevator and moving platform with the MoveTowards() function.
Elevator given a 2nd collider with Is Trigger turned on and positioned inside the elevator.
Player using the elevator and moving platform with the Lerp() function.

--

--

--

Learning to become a Unity game developer.

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

Recommended from Medium

DevLog #31: Racing Updates, Plastic Banks, Mining Lasers

Medicine was all I ever wanted to do, and I was determined to do all that it took to become a…

Firebase storage CORS fix for Web app hosted on Firebase hosting

How To Choose The Right Database For Mobile Application Development

Smallest distroless golang docker container

Reimagining Infrastructure for a Distributed Era [2/5]

How Authorization Works in Kubernetes: RBAC

Meta: Executable processes for software development

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

Coding the exit for full screen

Let’s Make A Player

The simplest way to create a First Person Shooter! (Part 1)