Victor's fog and overlay script - displaced overlay

Hello!


I'm using Victor's overlay script and trying to set up a sunbeam overlay, but somehow the overlay is off on the map. I use 640x480 resolution for my game, and for the overlay as well, but this is the result that I get. The only way to solve this is to resize the overlay so it matches the maps size. Which can be enourmous. I don't think that's the correct answer.


Clipboard01.png

Original thread: https://forums.rpgmakerweb.com/threads/victors-fog-and-overlay-script-displaced-overlay.59003/