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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.