I'm making a game in which I want a rain effect, like rain is coming and game play normally.

  • 1
    \$\begingroup\$ Nikhil, although you managed to get answers this time, your question is not very good. Future questions should include more description of what you want and information about what you've tried. \$\endgroup\$ – MichaelHouse Jun 15 '12 at 13:55
  • \$\begingroup\$ who are u , r u owner of this site ? @Byte56 \$\endgroup\$ – Nikhil Lamba Jun 15 '12 at 13:57
  • \$\begingroup\$ I'm not the owner Nikhil, just trying to help you create better questions in the future. The better you make your questions, the more likely you are to get help. You're only helping yourself by improving them. Additionally, lashing out at people who down vote your questions isn't going to help you get answers either, and such comments are not welcome on this site. I've marked your other comment as such. \$\endgroup\$ – MichaelHouse Jun 15 '12 at 14:03
  • \$\begingroup\$ This is a community-managed Q&A site, so Byte56 isn't the owner per-se but he gained enough reputation here to advise you to try to improve your questions. Check the FAQ for details of how this site works, espeecially the part about etiquette. \$\endgroup\$ – Laurent Couvidou Jun 15 '12 at 14:03
  • \$\begingroup\$ oops so sorry guys, acctually m little bit frastrated on making game that's y i wrote that comment , again sorry , and thanx for giving me suggestion :)@lorancou \$\endgroup\$ – Nikhil Lamba Jun 15 '12 at 14:10

There are two ways to create a rain effect in andengine.

  1. You can use sprite for rain drop and generate sprite at random position in the screen of the device. This will create a illusion of rain.

  2. You can use a particle for creating rain effect. You have to generate particle randomly on the screen.

| improve this answer | |
  • \$\begingroup\$ +1 for ur Answer man, but i don't have to much repution to make it up thanx 4 reply , r u talking about this link code.google.com/p/andengineexamples/source/browse/src/org/… for particle for creating rain effect \$\endgroup\$ – Nikhil Lamba Jun 15 '12 at 9:30
  • \$\begingroup\$ yes Nikhil I am talking about that type of particle effect but you have to create manually rain type particle effect. I suggest that you use point partcile which create nice effect for you. For giving random position to particle you can use method particleEmmiter.setCenter() \$\endgroup\$ – Siddharth Jun 15 '12 at 12:28
  • \$\begingroup\$ Thanx a lot its working :) r u a android game developer with andengine + Box2d ? @Siddharth \$\endgroup\$ – Nikhil Lamba Jun 18 '12 at 5:56

While this isn't how, it should be noted that: (this will help with speed) You almost never see rain by itself, you only see it when it hits the ground or passes through a lit object (like a light post). The simplest way to mimic rain without drawing any rain particles is to add fog to the world and add raindrops to the world, with maybe a few rain streaks. That will give you more realistic rain IMO. While this effect works better in 3D (you can see it discussed here: http://blogs.msdn.com/b/shawnhar/archive/2009/04/01/motogp-wet-weather-effects.aspx), if done right it could probably still look good in 2D

| improve this answer | |
  • \$\begingroup\$ Thanx for reply :) \$\endgroup\$ – Nikhil Lamba Jun 15 '12 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.