Author Topic: PLUGIN: Snow/Rain 2.02  (Read 45266 times)

Scorpiorus

  • 100101101010b
PLUGIN: Snow/Rain 2.02
« on: 03 Feb 2003, 18:43 »
AGS Snow/Rain plugin 2.02 (original version):

http://americangirlscouts.org/agsresources/AGS%20resources/plugins/ags_snowrain202.zip (supports AGS 3.4.1 - Beta 6 and above; also supports AGS 2.71 and AGS 2.72)

Many thanks to http://americangirlscouts.org/agsresources/ for hosting!


AGS Snow/Rain plugin 3.0.0 ALPHAs (work in progress):

Snow/Rain 3.0.0-ALPHA-2: unavailable at the moment, use v2.02 for now (ONLY supports AGS 3.4.0 - Patch 4, running in Direct3D 9 graphics mode!)

Size: ~2.1 MiB



ORIGINAL VERSION:

Snow/Rain plugin (version 2.02) released.

Update: The version 2.02 has been released. It should solve the problem with the plugin not working with AGS v2.71. This also means it requires AGS v2.71 or above in order to run properly.

I totally rebuilt it so all function names have been changed (sorry). What's new?
- Added rain;
- Improved snow/rain control;
- Added ability to animate snowflakes/raindrops;
- Added ability to set snow/rain transparency (HiColor only);

Note: Since version 2.02 the plugin does NOT require the alleg40.dll library anymore, so you can safely remove it from your game COMPILED folder in case you have upgraded to the latest version.

Some other notes:
You can set the wind speed for the rain but keep in mind that it doesn't rotate raindrop sprites (currently that's not supported), and you then have to change them manually with the srSetRainView() function.
« Last Edit: 08 Dec 2017, 11:53 by Scorpiorus »

Vel

Re:AGS: SnowRain PlugIn [v2.0]
« Reply #1 on: 03 Feb 2003, 18:53 »
GREAT!!!!!!!!!!!!!

Re:AGS: SnowRain PlugIn [v2.0]
« Reply #2 on: 03 Feb 2003, 18:56 »
Wow... Finally! :D

I can't wait to test it... I'll give you some feedback once I've tested it... :)

-EDIT-

That's great!! Wow, I love it!! :D
I'll definately use this in my game! :D
Great job!!!
« Last Edit: 03 Feb 2003, 19:23 by AJA »

Re:AGS: SnowRain PlugIn [v2.0]
« Reply #3 on: 06 May 2003, 12:50 »
Hi

First, I love the snow rain plugin... very nice looking. Question: When you distribute a finished game (and include the dlls with it,) do you have to specify to the user to put the dlls in his windows folder?

Also, I am interesed in checking out your parallex scrolling plugin also... but the link on the plugins page wont allow me to download it. Do you have another source for the zip?

wOoDz

  • Guest
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #4 on: 06 May 2003, 13:48 »
thats bloody brilliant, and i've got just the spot for it!

woodz ;D

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens Monarch
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #5 on: 06 May 2003, 21:39 »
First, I love the snow rain plugin... very nice looking. Question: When you distribute a finished game (and include the dlls with it,) do you have to specify to the user to put the dlls in his windows folder?

No, the DLLs just need to be in the game folder.

Re:AGS: SnowRain PlugIn [v2.0]
« Reply #6 on: 12 May 2003, 13:28 »
Does this only work with high color games, or 256 color also?

Scorpiorus

  • 100101101010b
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #7 on: 13 May 2003, 17:20 »
Quote
Quote
First, I love the snow rain plugin... very nice looking. Question: When you distribute a finished game (and include the dlls with it,) do you have to specify to the user to put the dlls in his windows folder?


No, the DLLs just need to be in the game folder.
Yep, the rule is simple enough: just keep both dlls in the same folder where the game .exe is.


Quote
Does this only work with high color games, or 256 color also?
Well, it works for 256 colors game as well. However you wouldn't be able to use transparency effects.

-Cheers
« Last Edit: 24 Dec 2005, 19:27 by strazer »

Re:AGS: SnowRain PlugIn [v2.0]
« Reply #8 on: 15 May 2003, 20:33 »
Wow, this is perfect! And now I get a chance to use that 1337 rain sound effect I've been saving >:)

Pet Terry

  • Mittens Vassal
  • Sunshine.
    • I can help with making music
    •  
  • Pet Terry worked on a game that was nominated for an AGS Award!
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #9 on: 18 May 2003, 09:10 »
Hey great plug-in! One question:

I have this background

and I would like to have raindrops appear only inside the white rectangle. How can I do that? Maybe setting rain baseline?
<SSH> heavy pettering
Screen 7

Scorpiorus

  • 100101101010b
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #10 on: 18 May 2003, 14:37 »
I am afraid setting baselines do not help. If you set a low baseline just on the bottom white line it'll help a bit. But for left, right and upper lines it won't. The plugin dosn't support walkbehindes because of perfomance reasons. The only way to do what you what is to make four always-on GUIs representing each side of the border as the GUI is the only thing that is drawen over the rain/snow sprites.

-Cheers

AGS Newbie

  • Guest
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #11 on: 18 May 2003, 23:00 »
Amazing Plug-in ! Scorpiorus, any chance this plug-in of yours will be updated to support 800x600 ?

Scorpiorus

  • 100101101010b
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #12 on: 19 May 2003, 09:53 »
Possibly, but keep in mind it could slow down a game a *LOT* (especially with transparencies turned on) so I would recommend you to use 640x480 instead.

Scorpiorus

  • 100101101010b
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #13 on: 20 May 2003, 16:08 »
can i use it only to be seen in a window..
Actually I think of adding a function allowing resizing and positioning of a window, the snow/rain runs in.

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    •  
  • SSH worked on a game that was nominated for an AGS Award!
Re:AGS: SnowRain PlugIn [v2.0]
« Reply #14 on: 05 Aug 2003, 16:50 »
I was trying to use the plugin to get a snowstorm effect. The trouble is, that for a snowstorm flakes need to start from one side rather than along the top. As it is, I get a snow storm in the top 100 pixels and the stuff underneath is clear...  :(

Unless I've missed something... any chance of adding an option like this?

Rui 'Trovatore' Pires

  • Lunge da lei per me non v'ha diletto!
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re:AGS: SnowRain PlugIn [v2.01] fixed to work with AGS 2.6
« Reply #15 on: 10 Jan 2004, 07:44 »
Petteri already asked for this, but he could work around it better than I will be able to, since I need it for more complex layering.

Could we have it so we can change whether the rain is displayed on top of other things, whether they are GUIs or not? And even if we want the rain to fall over the GUI?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Scorpiorus

  • 100101101010b
Re:AGS: SnowRain PlugIn [v2.01] fixed to work with AGS 2.6
« Reply #16 on: 10 Jan 2004, 14:00 »
I see what you are asking for and I'll implement that layer thingy for the next major release. Thank for the suggestion.

Hobbes

  • Swashbuckler
Re: PLUGIN: SnowRain plugin
« Reply #17 on: 27 Mar 2005, 22:00 »
I can't get this plugin to work.

In the past I was able to use this without a problem, but now my AGS does some very weird things...

The raindrops fall, but leave behind a transparant trail which does not disappear.

So, within thirty seconds my entire screen is one big whiteness.

Did this happen to anybody else?
« Last Edit: 27 Mar 2005, 22:08 by Hobbes »

Rui 'Trovatore' Pires

  • Lunge da lei per me non v'ha diletto!
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: SnowRain plugin
« Reply #18 on: 29 Mar 2005, 11:41 »
That'll happen, methinks, unless you're using the most recent version of the plugin.
« Last Edit: 13 Apr 2006, 02:43 by strazer »
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Re: PLUGIN: SnowRain plugin
« Reply #19 on: 01 Apr 2005, 09:01 »
Now that this thread has been dug up again...

I've been playing around with the plugin, and I was wondering if it would be possible to add a "center of gravity" to the plugin. So that raindrops/snowflakes would fall towards a coordinate (on or off screen), instead of straight down, and then disappear when they reached it?
« Last Edit: 01 Apr 2005, 10:08 by GarageGothic »