Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EnnarGames on Thu 23/06/2022 03:26:48

Title: Maniac Mansion Flashlight Effect
Post by: EnnarGames on Thu 23/06/2022 03:26:48
Hello everyone!

Was playing through Maniac Mansion and noticed a really neat and simple effect they used for their flashlights in dark rooms. Basically the room is pitch black and after using the flashlight, your cursor becomes a little circular “cut out” that reveals the room from the darkness as you move it across the screen. Figured this could not only be a fun mechanic within that same context for a game, but perhaps even a cool way to have a night vision sniping mini game of some sort.

Anyways, how might you go about creating that mechanic in AGS?

Thank you!
Title: Re: Maniac Mansion Flashlight Effect
Post by: Snarky on Thu 23/06/2022 17:01:43
I would probably start by searching the AGS Forums for the term "flashlight."
Title: Re: Maniac Mansion Flashlight Effect
Post by: eri0o on Thu 23/06/2022 17:24:05
The basic idea is you create an image that is twice the size of your game resolution, with the cutout you want on the center, and then import this image and set it as the sprite of something (Overlay, GUI, ...), and then move it so that it's center is in the mouse position on each frame update.
Title: Re: Maniac Mansion Flashlight Effect
Post by: Khris on Thu 07/07/2022 00:34:03
There's also a module for this.