Possible to make a spotlight?

Started by RedBlob, Thu 15/11/2007 09:07:02

Previous topic - Next topic

RedBlob

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?

Radiant

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.

GarageGothic

You might want to check out monkey's flashlight module which does exactly what Radiant suggested.

Dualnames

Actually I think he's looking for something else..
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

monkey0506

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.

SMF spam blocked by CleanTalk