Rain or leaves motion effect

How to imprement an effects of rain or fallen leaves?
Any idea?

You can use Sequence and Spawns. It will run multiple action at same time(like rain drops, falling leaves) and can repeat as well(for continuous rain drop effect).

Hey, You can also use ParticleSystem, and its pretty easy.

auto rainParticle = ParticleRain::create();
this->addChild(rainParticle);

Try this.

1 Like

Thank you.

Do we need mathematical knowledge for more natural expression?

@standwally I dont think that anyone who is doing this will require knowledge of maths, just basics are enough.

You can refer this link -> http://www.cocos2d-x.org/docs/api-ref/cplusplus/V3.2/d9/daa/classcocos2d_1_1_particle_rain.html :slight_smile:

1 Like