Maniac Mansion Flashlight Effect

Started by EnnarGames, Thu 23/06/2022 03:26:48

Previous topic - Next topic

EnnarGames

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!
“Art is an object riddled with sharp edges that can cut you.  You can pound all those edges away and make it smooth and make it safe, but what you’re left with is just a shapeless blob.  It’s safe and it’s smooth, but it’s uninteresting.” Ron Gilbert

Snarky

I would probably start by searching the AGS Forums for the term "flashlight."

eri0o

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.

Khris


SMF spam blocked by CleanTalk