Moving Platform

This is an actor blueprint. In the Viewport I just added a simple cube and scaled it down on the z-axis. Here I have several variables. Notice the floats “Speed” and “How high” are exposed. I clicked on the eye icon on the right. This enables you to set the speed on a per object basis. So every time you drop a platform in a level you can make it move to different heights and at different speeds. goingDown boolean is left at false. The other variables are set at BeginPlay based on where the platform is located.