Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Unity Game Development Blueprints

You're reading from   Unity Game Development Blueprints Explore the various enticing features of Unity and learn how to develop awesome games

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783553655
Length 318 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
John P. Doran John P. Doran
Author Profile Icon John P. Doran
John P. Doran
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Unity Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. 2D Twin-stick Shooter FREE CHAPTER 2. Creating GUIs 3. Side-scrolling Platformer 4. First Person Shooter Part 1 – Creating Exterior Environments 5. First Person Shooter Part 2 – Creating Interior Environments 6. First Person Shooter Part 3 – Implementing Gameplay and AI 7. Creating Save Files in Unity 8. Finishing Touches 9. Creating GUIs Part 2 – Unity's New GUI System Index

Winning the game


Now that we have the goals showing, we now need some way in order to complete the project. With that in mind, let's create our goal:

  1. Create a new particle system by going into GameObject | Create Other | Particle System (in case of Unity 4.6, go to GameObject | Particle System). Change the name of the object to Goal.

  2. Under the Shape section, change the Shape variable to Box, and change Box X to 1 and Box Y and Box Z to 0.

  3. Click on the arrow on the right-hand side of Start Lifetime, and change the values to Random Between Two Constants. Change those values to 0 and 1. Do the same with Start Speed between 2 and 4. Make Start Size use random values between 0 and 0.5. Change Start Color to Random Between Two Colors using a green and purple color. Finally, uncheck the Play On Awake variable. Have a look at the following screenshot:

    With that, you should have a nice stream of particles coming in for your new goal object!

  4. Add in a box collider by selecting Component | Physics | Box...

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
Visually different images