Creating a Particle Effect for Coin Boxes

The best way to understand a system is to put it to use, so let’s create a particle effect to play when the player strikes a coin box. We’ll make it something simple, using the most basic elements of the particle system. Take the following steps to get things started:

1. Use GameObject > Create Other > Particle System to create a GameObject with a Particle System Component.

2. Select a recognizable icon, such as a purple diamond, so that we can quickly see our particle system in the Scene View.

3. Name the GameObject “particle_coinBox.”

We now have a standard particle system that we can work from. We’ll look at the settings, one at a time, to create an appropriate visual effect for when the player picks ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.