Rain in my game, some kind person, please help..:)
For the last couple of weeks, I have been trying to create rain for my game without loosing performance. I have tried using particles and animation etc. I have looked at the snow particles gamesalad demo, but all of which are performance hungry.
If anybody can help with a template or advice, this would highly be fantastic.
My scene is 320x480.
thanks
Dan
If anybody can help with a template or advice, this would highly be fantastic.
My scene is 320x480.
thanks
Dan
Comments
1) the worst one would be using a 320x480 animation with the rain in it, not a good idea
2) using particles, you already tried and u didnt like it
3) you can create an actor called drop, with the drop image in it, then interpolate x and y position to make it look like rain, and creating and rule making it recycle when it hit the floor (when it hit the floor you change its x and y position to the original, or to a random one to make it look like another drop)
I hope others can shed some light
Make a smaller seemless animation and tile it. So instead of a 320x480 10 frame animation which would take 512x512x10 in RAM for images you could make a 128x128 animations for 16 frames and it would as much RAM for images as one 320x480 image.
Gleeson Group Media
UNoffical Gamesalad Guide
FREE and easy to use. Contains all well done video tutorials for Gamesalad.
@FirstDan - Also you can try using small static images (lots of big images will kill performance of a busy game) in combination with:
The replicate behaviour
Interpolating the alpha up and down.
Randomly changing the x/y positions.
If you choose prime numbers as your time intervals/position changes you can avoid obvious patterns for a more natural feel.
Shaz
@FBS thank you very much for the rain files, looks very nice
Calvin
Much appreciated
Ciao
RKS - Are you calling me a Porkchop?
Hope my tutorial can help someone out there.