Well, its really just the SimpleSnow hacked about a bit, but if you want a lot of rain, try this
SimpleRain module and demo game (http://ssh.me.uk/modules/SimpleRain.zip) (
Requires AGS 2.71)
Mirror (http://www.lumpcity.co.uk/~ssh/SimpleRain.rar)
// Script header for module 'SimpleRain'
// Author: Andrew MacCormack (SSH)
// Please use the PM function on the AGS forums to contact
// me about problems with this module
//
// Abstract: Rain, without using a plugin
//
// Dependencies:
//
// AGS 2.71Final2 or later
//
// Functions:
//
// function SimpleRain.Init(int view);
// Prepares some Rainfield sprites to use, using the sprites in view as Rain.
// Ideally, this should be run in a room that is wider than the screen, or
// when there is any wind at all, the Rain will look odd.
//
// function SimpleRain.Go();
// Starts Raining
//
// function SimpleRain.No();
// Stops Raining
//
// function SimpleRain.SetWind(int wind);
// Sets wind speed and direction.
//
// Configuration:
//
// Fiddle about with the #defines here to change Rain, but its not an
// exact science
//
// Example:
//
// int wind;
// function room_a() {
// // Room script: after room fadein
// SimpleRain.Init(RainFLAKES);
// wind=0;
// SimpleRain.Go();
// SetTimer(1, 40);
// }
//
// function room_b() {
// // Room script: repeatedly execute
// if (IsTimerExpired(1)) {
// if (Random(1)) { if (wind<8) wind++; else wind=1; }
// else { if (wind>-8) wind--; else wind=-1; }
// SimpleRain.SetWind(wind);
// SetTimer(1, 40);
// }
// }
//
// Caveats:
//
// No transparency
// Rain movement sucks
// Lots of overlays is slow
//
// Revision history:
//
// 20 Jan 06 v1.00 Initial version, modified from SimpleSnow
//
// Licence:
//
// SimpleRain AGS script module
// Copyright (C) 2006 Andrew MacCormack
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
Nifty looking plugin. I would reccomend changing SimpleRain.No() to Simplerain.Stop() for consistency however. Seems kind of weird to go from 'go' to 'no' other than the rhyming.
Try to use the Module but I get a sheet of black about 1/2 way down the room?
Room is 800x600
SimpleRain.Init(RAINDROPS);
SetTimer(1, 40);
wind=0;
Need some help if you could.
well, i didnt test it at that resolution. Try searching for "200" or "240" in the module code and replacing it with "300" or ideally system.viewport_height
Thanks SSH I will do that ..
For such a large resolution, you're probably better using the plugin anyway