2d Random Rain..

Blitz3D Forums/Blitz3D Beginners Area/2d Random Rain..

FBEpyon(Posted 2004) [#1]
Hello, I was hoping someone could help me with doing 2D Rain that starts at random like you see im most MMORPG..

Also it would be nice to know how to make it stay like it was getting the ground wet, and dryed up when it stopped raining..

Thanks


jfk EO-11110(Posted 2004) [#2]
not so easy... did you check the code archives or a search for rain in the showcase of www.blitzcoder.com ?


Rimmsy(Posted 2004) [#3]
First, when do you want it to rain? How often? Once every 10,000 cycles? Jus stick a loop in somewhere that says
if rand(1,10000)=1 then rain_baby()

Also, how do you mean wet looking? Exactly how do you want to the effect to be? Explain it further and we'll see what we can do.


FBEpyon(Posted 2004) [#4]
sorry been gone for a while ran into another problem in my program..


BlitzAdict(Posted 2004) [#5]
Can you not use two or three different floorgraphics? something like:
If Rain = 1 Then DrawWetFloor()
and maybe a half-wet floor after it stopped raining with a delay of a few secounds.

Just an idea

Good luck with your game.


Valgar(Posted 2004) [#6]
To simulate a wet floor make an internal counter and you make that at certain value (in millisecs) you change the floor tiles with one that are much wet of the old one.finally you have a total wet floor and you reset that counter and stop the rain.
also make some small animations of "circles"of water,like when you trow a rock in a river.