It bothered me that most rain codes would just spawn drips above the player head, and when you run there would be a noticeable difference in the amount of rain in front of you, giving the impression (which is quite not wrong) that you are being chased by a cloud:

So I tried to make a code which the rain particles would jump to the "other side" when they cross the limit, the same goes for vertical movement. There also are some gimmicks to maximize the amount of visible particles by moving all of them to your field of vision, etc.
Change the first value of RAINTYPETEMP to 1 for snow so you can have a better look at the effect. You are going to notice that some particles pop out of nowhere is front of you as you move.
There is some incomplete code in the CON, but whatever. The coordinate of the rain sprites are based on the camera temporary values, which is an ugly hack and probably would go out of sync in multiplayer causing a nuclear meltdown in your hardware.
I have no use for this right now, so I hope this can at least serve as inspiration for somone...
Attached File(s)
-
raincode.zip (7.65K)
Number of downloads: 239