Continuing with what you learned from the previous section, we can take animations to another level by making moving platforms. However, UFPS comes with its own built-in way of doing this.
From the Project tab, open the
Chapter 6_3_ElevatorStart
level. This will give us a simple starting point to create an elevator.Alternatively, use a level that we created previously and add an elevator to it.
From Prototype, create a cube by pressing Ctrl + K. Move it to ground level in a 3 x 3 x 1 size cube.
Go to the Object editing mode and set Vertex Color to Grab to make it easy for us to see.
Rename the object to
Platform01
. Finally, from the Prototype tab, click on the Set Mover button to make the object a mover.Create a new game object by going to GameObject | Create Empty. Name this new object
Platform01Path
.Create a duplicate of our
Platform01
object by selecting it from the Hierarchy tab and pressing Ctrl + D. Rename this object to01
and make it a child ofPlatform01Path
.Next...