Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / HOW To : Make several weather effects with particles or sprites?

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 19th Jan 2003 16:32
can anyone show me a short piece of code for rain or snow and maybe wind too please?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Jan 2003 18:18
just like in the cartoons u could make a mini black cloud.

It would be a localised particle system pouring over the top of the player with a semi wide radius so the illusion isnt so obvious.


looking into the distance would show that there isnt rain drops falling but the illusion is simple enough to pass as a simple effect to acheive this.



you could also use a flat plain locked to the camera scene with an image on it.

two ideas only

The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2003 23:02
Here's some code which looks quite rubbish, but nevertheless is some rain code.



This will position 4 particles in a random area around the player above them, and fire them downwards each cycle, so it looks like rain. However you don't have complete control over the particles. It would be good if you could eliminate all sideways velocity, or even set your own, and fire them at specific intervals. That would allow you to do a for...next loop and create 10 random rain drops per cycle, but you can't do that.
Arrow
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 20th Jan 2003 06:34
If all else fails a simple sprite over the cameria would work in a pinch.

This is Truth!
This is my Belief!
...at least for now.

Login to post a reply

Server time is: 2024-11-23 21:48:19
Your offset time is: 2024-11-23 21:48:19