Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building an FPS Game with Unity

You're reading from  Building an FPS Game with Unity

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781782174806
Pages 326 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started on an FPS 2. Building Custom Weapons 3. Prototyping Levels with Prototype 4. Creating Exterior Environments 5. Building Encounters 6. Breathing Life into Levels 7. Adding Polish with ProBuilder 8. Creating a Custom GUI 9. Finalizing Our Project Index

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}