Creating a Dark Room

Hey there! Trying to make a dark room maze for one of my puzzles. I had the idea where you'd use a picture of blackness, but with a hole that follows the character around. Problem is, I know that pictures are generally tacked onto the screen. How do I get one to follow a character? If this is impossible, are there any alternatives to making a dark room.

Pokemon - Dark Room.jpg
The way you did it isn't bad, if you just want the light to follow the player only.

Is the problem is the player walking out of the light when walking to the borders/corners of the map, then you can solve this problem by adding extra tiles on each side of the map. If you ass enough tiles outside the walls, the player will always stay in the middle, and in the light.
2 options:
easiest, but using plugins is to implement Community Lighting - it's a great plugin being regularly supported.

Option 2 is using pictures just as you imagine.
The thing is, is that the camera always keeps the player in the center. The only time is can't keep the player in the center is if the boundaries of the map prevents it from following the player.
To get around this, just make your map a bit larger. Create a empty buffer between the edge of the playable map and the edge of the actual map. Something like this:
buffer.jpg
A buffer! Of course! Why didn't I think of that? I'm gonna give that a whirl. Thanks for your help, guys!
Sometimes the solution is just so simple that we don't even think of it.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-dark-room.151850/