Book Image

Building an FPS Game with Unity

By : John P. Doran, jamal seaton
5 (1)
Book Image

Building an FPS Game with Unity

5 (1)
By: John P. Doran, jamal seaton

Overview of this book

Table of Contents (18 chapters)
Building an FPS Game with Unity
About the Author
About the Reviewers

Creating an elevator

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.

  1. 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.

  2. From Prototype, create a cube by pressing Ctrl + K. Move it to ground level in a 3 x 3 x 1 size cube.

  3. Go to the Object editing mode and set Vertex Color to Grab to make it easy for us to see.

  4. Rename the object to Platform01. Finally, from the Prototype tab, click on the Set Mover button to make the object a mover.

  5. Create a new game object by going to GameObject | Create Empty. Name this new object Platform01Path.

  6. Create a duplicate of our Platform01 object by selecting it from the Hierarchy tab and pressing Ctrl + D. Rename this object to 01 and make it a child of Platform01Path.

  7. Next...