Rain effect looks like snowfall effect?

Posted by Nikhil Lamba on Game Development See other posts from Game Development or by Nikhil Lamba
Published on 2012-06-16T06:37:02Z Indexed on 2012/06/16 9:23 UTC
Read the original article Hit count: 384

Filed under:
|
|

i am making a game in that game i want rain effect i am little bit far from this right now i am doing like below

    particleSystem.addParticleInitializer(new ColorInitializer(1, 1, 1));
    particleSystem.addParticleInitializer(new AlphaInitializer(0));
    particleSystem.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
    particleSystem.addParticleInitializer(new VelocityInitializer(2, 2, 20, 10));
    particleSystem.addParticleInitializer(new RotationInitializer(0.0f, 30.0f));

    particleSystem.addParticleModifier(new ScaleModifier(1.0f, 2.0f, 0, 150));
    particleSystem.addParticleModifier(new ColorModifier(1, 1, 1, 1f, 1, 1, 1, 3));
    particleSystem.addParticleModifier(new ColorModifier(1, 1, 1f, 1, 1, 1, 1, 6));
    particleSystem.addParticleModifier(new AlphaModifier(0, 1, 0, 3));
    particleSystem.addParticleModifier(new AlphaModifier(1, 0, 1, 125));
    particleSystem.addParticleModifier(new ExpireModifier(50, 50));

    scene.attachChild(particleSystem);

But its looks like snowfall effect what changes i can do for make it rain effect please correct me

EDIT : here is link for snapshot http://i.imgur.com/bRIMP.png

© Game Development or respective owner

Related posts about android

Related posts about box2d