There is a new version of the forums ready for testing. Please post here if you're willing to help test! We could also use the help of coders!

Author Topic: Maniac Mansion Flashlight Effect  (Read 345 times)

Maniac Mansion Flashlight Effect
« on: 23 Jun 2022, 03:26 »
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!
« Last Edit: 23 Jun 2022, 12:33 by hobbesboi »
“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


  • Global Moderator
  • Global Moderator
  • Mittens Lord
  • Private Insultant
    • Best Innovation Award Winner 2018, for his numerous additions to the AGS open source ecosystem including the new Awards Ceremony client and modules
    • Snarky worked on one or more games that won an AGS Award!
    • Snarky worked on one or more games that was nominated for an AGS Award!
Re: Maniac Mansion Flashlight Effect
« Reply #1 on: 23 Jun 2022, 17:01 »
I would probably start by searching the AGS Forums for the term "flashlight."


Re: Maniac Mansion Flashlight Effect
« Reply #2 on: 23 Jun 2022, 17:24 »
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.

Re: Maniac Mansion Flashlight Effect
« Reply #3 on: 07 Jul 2022, 00:34 »
There's also a module for this.