Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: RedBlob on Thu 15/11/2007 09:07:02

Title: Possible to make a spotlight?
Post by: RedBlob on Thu 15/11/2007 09:07:02
I know we can use regions to darken or lighten a specific area, which is great. But, what about brightening a specific sphere of influence, like the area surrounding the mouse?

For example, the mouse acts like a flashlight/torch, making specific areas brighter when scrolled over.

Is this possible?
Title: Re: Possible to make a spotlight?
Post by: Radiant on Thu 15/11/2007 10:50:05
Yes. There is a spotlight plugin, for one.

Another thing you can do is create a GUI that's completely black but has a transparent hole in it, and use repeatedly_execute_always to move that hole over the mouse cursor.
Title: Re: Possible to make a spotlight?
Post by: GarageGothic on Thu 15/11/2007 22:38:03
You might want to check out monkey's flashlight module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30137.0) which does exactly what Radiant suggested.
Title: Re: Possible to make a spotlight?
Post by: Dualnames on Sat 17/11/2007 00:43:34
Actually I think he's looking for something else..
Title: Re: Possible to make a spotlight?
Post by: monkey0506 on Sat 17/11/2007 07:38:12
Quote from: RedBlob on Thu 15/11/2007 09:07:02For example, the mouse acts like a flashlight/torch, making specific areas brighter when scrolled over.

What exactly do you propose he's looking for? Granted I'm not saying my module is perfect, but it does seem to fit his description.