Moving Platforms and Elevators!


In class we learned to craft platforms that move on a timer and were assigned to make a motion activated elevator platform.

The screenshotted code, in essence, sets up the collision boxes for the elevator to move when the player stands on top of it, makes checks to ensure that the thing won't move repeatedly or in the wrong direction when triggered (including a timer for when it can activate again to prevent the player triggering the thing to go up and down as long as they're standing on it) and then creates the movement through a timeline providing data to a lerp transform teaming up with a "set location and rotation."

Files

Coding1_WIN_Moving_Platforms.zip 488 MB
Apr 07, 2025

Get Coding1

Leave a comment

Log in with itch.io to leave a comment.