Lightning Problem

Hello again,

I was trying to make an event which allowed my main character to have a "lamp" effect, so that the entire map was somewhat dark except for the lamp area. Now the problem is (as you can see on the screenshots ) that when I reach the border of the map, the image appears incomplete or it keeps following the player. Any ideas to how I can solve this?

In order to make the event I set the picture to follow the screen's X and Y.

Lightning problem 1.png

Lightning problem 2.png
It would help to have a screenshot of the event itself, but basically you need to have a larger picture for the effect - it needs to have a shadow area larger than the original screen size to allow for covering when the actor is not in the center.


Alternatively, you can make your maps larger and fill the outer parts of the map with decorations, so that the player will never be moved out of the center by the engine.
By adding a larger image I was able to fix it. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/lightning-problem.39453/