Author Topic: PLUGIN: Snow/Rain plugin v2.02  (Read 18008 times)  Share 

Mods

  • Global Moderator
  • AdventureX Crew
  • Mittens Founder
  • Mittens Marquess
    • Lifetime Achievement Award Winner
    •  
  • Mods worked on a game that was nominated for an AGS Award!Mods worked on a game that won an AGS Award!
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #60 on: 31 Oct 2010, 16:39 »
Great module, quick question - I'd like my rain to start about 100 pixels down from the top of the screen. How do I set that? Is it the SetBaseline part because I have only been able to block off where it falls too, not dictate where it falls from. Unless there's a way to make it fall behind a room object that is covering the top 100 pixels of the screen. Cheers.
Mark "Mods" Lovegrove - Screen 7

Mods

  • Global Moderator
  • AdventureX Crew
  • Mittens Founder
  • Mittens Marquess
    • Lifetime Achievement Award Winner
    •  
  • Mods worked on a game that was nominated for an AGS Award!Mods worked on a game that won an AGS Award!
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #61 on: 04 Nov 2010, 21:01 »
I'd still like my rain to fall 100 pixels from the top.

No? Is that not possible with this plugin?
Mark "Mods" Lovegrove - Screen 7

Dualnames

  • Local Moderator
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #62 on: 04 Nov 2010, 21:09 »
From the readme:

srSetRainBaseline(int top, int bottom);

Sets rain baselines (top and bottom ones). These baselines
determine the edges the rain falls between. Range [0..200].

EDIT:
srSetRainBaseline(100,System.ScreenHeight);


EDIT2: Sorry m0ds, didn't read your initial post. Stupid me. ::)
« Last Edit: 04 Nov 2010, 22:22 by Dualnames »

cianty

    • I can help with play testing
    •  
    • I can help with web design
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #63 on: 04 Nov 2010, 22:19 »
No, I don't think it's possible to do what Mods wants.

The function Dualnames mentions only defines the area in which the rain lands, i.e. it comes from the top and falls down to.. e.g. 180 and 200, thus defining an area of 20px height in which the rain falls.
ca. 40% completed

Mods

  • Global Moderator
  • AdventureX Crew
  • Mittens Founder
  • Mittens Marquess
    • Lifetime Achievement Award Winner
    •  
  • Mods worked on a game that was nominated for an AGS Award!Mods worked on a game that won an AGS Award!
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #64 on: 05 Nov 2010, 20:04 »
Bugger.

Thanks anyway  :=
Mark "Mods" Lovegrove - Screen 7

Mati256

  • Hello there!
    • I can help with play testing
    •  
    • I can help with web design
    •  
    • I can help with translating
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #65 on: 31 Dec 2010, 22:27 »
My Blog! (En Espa�ol)

icey games

  • Official KH tester
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #66 on: 31 Dec 2010, 22:37 »

Mati256

  • Hello there!
    • I can help with play testing
    •  
    • I can help with web design
    •  
    • I can help with translating
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #67 on: 31 Dec 2010, 23:33 »
Thanks Icey, works like a charm.  ;D
My Blog! (En Espa�ol)

icey games

  • Official KH tester
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #68 on: 01 Jan 2011, 00:22 »
no prob :)

Mehrdad

    • I can help with animation
    •  
    • I can help with characters
    •  
    • I can help with story design
    •  
    • I can help with web design
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #69 on: 27 Feb 2012, 16:04 »
Hi

Sorry for coming up old topic

Isn't any way for using Snow/Rain plugin for D3D  or any another suggestion?

Mehrdad

My artworks  http://pershaland.com/

icey games

  • Official KH tester
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #70 on: 27 Feb 2012, 21:21 »
Can't really understand your question, Are you asking if it'll work with D3D or not? If so then I think it will work.

Mehrdad

    • I can help with animation
    •  
    • I can help with characters
    •  
    • I can help with story design
    •  
    • I can help with web design
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #71 on: 28 Feb 2012, 06:41 »
Are you asking if it'll work with D3D or not?

Yes
I read in forum this plugin doesnt work with D3D.
« Last Edit: 28 Feb 2012, 06:42 by Mehrdad »
My artworks  http://pershaland.com/

icey games

  • Official KH tester
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #72 on: 28 Feb 2012, 10:46 »
Oh so it doesn't work, well I guess there's not much to say :/


Dualnames

  • Local Moderator
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #73 on: 29 Feb 2012, 10:57 »
It doesn't work. If you want a rain/snow that's always in front of the player and supports individual transparency per flake/drop, then you really have to sacrifice stuff. I prefer to put the rain in a gui that simply plays an animation of frames/sprites and use particle effects for the rains falling on surfaces (ground, dripping) ecc.

Mehrdad

    • I can help with animation
    •  
    • I can help with characters
    •  
    • I can help with story design
    •  
    • I can help with web design
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #74 on: 25 May 2012, 17:05 »
Ok

Good point.thanks a lot.although i think game goes to slow with use animation gui.correct?

edit: (combined double post)
Sorry again

But i need to this useful module on D3D.for Rain and dust.Is it possible to re-writing for Direct3D9? I tried GUI instead .As result wasnt any good at all.
« Last Edit: 25 May 2012, 19:31 by Dualnames »
My artworks  http://pershaland.com/

paolo

  • Order of the Maggot
  • Go on, play Trance-Pacific if you haven't already
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #75 on: 09 Jun 2012, 17:01 »
A few questions about this module...

1. Does it work with AGS3.x? It's fine in 2.71 and 2.72 but when I ported my game to 3.0, AGS complained that the dll doesn't work. Does anyone have a version of the dll that works with 3.0, or is there something I need to do to get it to work?

2. Scorpiorus mentions that to change the rain view you need to use srSetRainView, but this is not discussed in his documentation nor does he say on here how to use it. It takes four integers as parameters - that's as much as I know. Does anyone know how to use this? Using srSetRainDefaultView sets the view once only and doesn't seem to allow you to change it.

3. Scorpiorus apparently hasn't been active here since 2009. Is anyone in contact with him in case I need to ask him directly?

Thanks everyone!

Frito Master

  • 0% Trans-Fat 100% Toxic
    • I can help with animation
    •  
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with voice acting
    •  
Re: PLUGIN: Snow/Rain plugin v2.02
« Reply #76 on: 09 Jun 2012, 19:48 »
A few questions about this module...

1. Does it work with AGS3.x? It's fine in 2.71 and 2.72 but when I ported my game to 3.0, AGS complained that the dll doesn't work. Does anyone have a version of the dll that works with 3.0, or is there something I need to do to get it to work?

2. Scorpiorus mentions that to change the rain view you need to use srSetRainView, but this is not discussed in his documentation nor does he say on here how to use it. It takes four integers as parameters - that's as much as I know. Does anyone know how to use this? Using srSetRainDefaultView sets the view once only and doesn't seem to allow you to change it.

3. Scorpiorus apparently hasn't been active here since 2009. Is anyone in contact with him in case I need to ask him directly?

Thanks everyone!


I got newest ags.

Works fine for me.

I just use
[code] srSetRainFallSpeed(200, 300);
srChangeRainAmount(1500);
srSetRainBaseline(20, 200);
srSetRainTransparency(50, 90);
srSetRainDefaultView(9, 0); //view=3; loop=0;
srSetRainWindSpeed(0); [/code]

« Last Edit: 09 Jun 2012, 19:59 by Frito Master »
Your favorite brandname chip friend.