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

Dealing with large changes in Open-Source projects

Creating Multi Cloud Mobile app clone in Flutter

Intro to Regular Expressions for Programmers

Why Java doesn’t optimize

Cannot get a STRING value from a NUMERIC cell ? BOOLEAN CELL? etc.,

Introducing Brushable Histogram

TensorFlow Lite Model Maker: Build an Image Classifier for Android

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 Infinite Runner-Collecting an item from a chest

Building and Testing your Unity game

Enemies Straight Ahead!

Platformer: Elevator