Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ethan D on Sat 16/05/2009 19:34:56

Title: room lighting
Post by: Ethan D on Sat 16/05/2009 19:34:56
Im trying to make it look like the power has cut off so everything is darker.  I know how to make the characters darker but I dont know how to make the rooms darker short of making 15 new rooms which would take up way to much space.  Is there any way I can just make the entire room several shades darker.
Title: Re: room lighting
Post by: NsMn on Sat 16/05/2009 19:38:43
There are three possibilities:

1. Using the flashlight plugin (which I wouldn't suggest to use as a beginner)

2. Tinting the Screen black using TintScreen();  (look in the manual)

3. Change the Background image (manual)
Title: Re: room lighting
Post by: Ethan D on Sat 16/05/2009 19:43:09
Tint screen changes it to just one color and I need it darker because the player will be exploring around the area while its darker.  Ill check out the flashlight plugin though.
Title: Re: room lighting
Post by: Ethan D on Sat 16/05/2009 19:47:47
Nevermind, I used tintscreen with 1 in each of the categories and it worked beautifully. Thanks for the help.
Title: Re: room lighting
Post by: Khris on Sat 16/05/2009 19:51:14
You can also use a black, non-clickable GUI as big as the screen with a transparency setting of 30-70.
Title: Re: room lighting
Post by: Ethan D on Sat 16/05/2009 19:53:15
Ill try that to. Thanks again
Title: Re: room lighting
Post by: Trent R on Sat 16/05/2009 20:47:46
The Flashlight Plugin was Modularized (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30137.0) a long time ago by monkey_05_06. Also, it includes a manual that is very easy to understand.

And Khris's suggestion would most likely work the best, in addition to being the simplest.

~Trent
Title: Re: room lighting
Post by: on Sat 16/05/2009 20:47:54
The benefit of Khris' method would be that you can fade the light on/off by simple increasing and decreasing the transparency of the GUI, which would look a good deal neater than just flipping from black to room pic.