Particle is a big topic in iOS animation. To create realistic smoke, fire or even rain drops or snow falls, having a good particle emitter is the key. But in this blog, I am going to talk about something more than a basic particle emitter.
In most of the cases, particle emitter generates particles randomly — random color, random size, random direction — with the control of some key parameters. But it is not always like that. Sometimes we want the generated particles to follow a certain path, such as water trace, a group of firefly, or sparkles in the wind. That’s what I am going to talk about this time — how to generate random particles along a path. Before we start, let’s take a look at the end result first.
As you can see in the demo, at first the particles ran around the character “2″; then in the second …