Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Unity Game Development Blueprints
  • Toc
  • feedback
Unity Game Development Blueprints

Unity Game Development Blueprints

By : John P. Doran
4 (6)
close
Unity Game Development Blueprints

Unity Game Development Blueprints

4 (6)
By: John P. Doran

Overview of this book

If you want to build enticing projects with Unity, this book is for you. Readers who are familiar with the basics of how to create simple projects in Unity will have an easier time.
Table of Contents (11 chapters)
close
10
Index

Creating collectibles


At this point, we have the basis of our game, but now, we need to add some gameplay to our world. Perhaps we will have it so that we need to collect all of the coins in the level, and then the goal will open:

  1. Create a new particle system by going to GameObject | Create Other | Particle System (in case of Unity 4.6, go to GameObject | Particle System). Change the name of the object to Collectible. Next, we need to assign the object's tag to Orb. To do so, select Tag | Add Tag. Once in the Tag menu, assign Element 0 as Orb, and press Enter. Select the Collectible game object in Hierarchy again, and then select Tag as Orb.

  2. Under the Shape section, change the Shape variable to Sphere and the Radius to 0.01.

  3. Click on the downward-facing arrow on the right-hand side of Start Lifetime, and change the values to Random Between Two Constants. Change those values to 0 and .2. Do the same with Start Speed between 0 and 1. Make Start Size use random values between 0 and 1.5.

  4. Under Start...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete