Can particle candy achieve this "rain" effect or should I look at implementing my own code?

I need to implement a stylized rain effect. Can particle candy easily achieve this?

Requirements:

  1. Falling Rain leaves a short trail.
  2. Rain drops bounce off of objects and “explode” into smaller raindrops with short lifespans.
  3. “wind” can blow the raindrops around as they fall.

Here is a quick sketch of what the effect might look like.

Thanks!

[import]uid: 60707 topic_id: 28029 reply_id: 328029[/import]

This should be possible with Particle Candy I think.

The particles can be physics object so you will be able to get them to collide with objects and also be affected with your implementation of the ‘wind’ effect.

If you wanted to have the raindrops explode into smaller particles then you can create a listener for the emitter much like how the Particle Candy fireworks sample code works. The main raindrops will have to be individual particles rather than a few grouped within a single image for this effect, otherwise some will disappearing before they’ve collided with anything.

Of course, you could roll your own code that spawns raindrops off screen at a random x position, set them to be physics objects and have a collision listener that handles removal of the raindrop and spawns the smaller droplets.

With regards to leaving the trail behind the rain droplets, this could be done with a timer. Maybe look at the implementation within the Ghosts Vs Monsters sample code where the ghost leaves a dotted trail behind him when fired. Not sure how processor intensive all these particles and timers will be, I supposed it depends on the spawn rate, number of particles and timers you have at any one time. Just make sure that you do proper clean up of everything.
[import]uid: 74503 topic_id: 28029 reply_id: 113385[/import]