Full screen offset

When a battle starts, for some reason the battle start animation is offset to the left.  The animation is being wrapped around so that what is being cut off on the left side is reappearing on the right side.


This glitch is also causing the right side of the screen to glitch when I try to use scripts that effect the entire screen, such as Khas awesome lighting script.


Any ideas of what's going on and how I can fix it?


(I have included pictures)

glitch.png

glitch.png
Are you using a full screen script or just the normal full screen? do you have any other script that modifies graphics?
I have been testing various things, and I have narrowed it down to something in the Yanfly scripts I am using.


I am using:
Yanfly's Core Engine


Yanfly's Battle Engine


Yanfly's Visual Battlers


Yanfly's State Animations


It seems to be an issue in one of the two engines...
It is something in the Core Engine.  I can add or remove any other script, but the error does not occur unless the core engine is implemented.  Maybe I should try re-downloading it.
I found the problem; it is with the window resizing.  If I edit out line 280 of the script.  The window isn't as big when you go full-screen, but the glitch is 100% gone.


This question has been answered.  If anyone finds a way to keep the full-screen specs without removing this line, please let me know.
@WeganB, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


It isn't an error, it depends on the way how 2D pictures work and a certain restriction of the engine.


The restriction is that the minimum map size is the screen size - if you have maps that are smaller than the screen size, then it will cause a lot of graphical problems.


This isn't mentioned in the help file, because the editor ensures that the minimum map size for default screen size is also the minimum map size possible at all.


But if you increase the screen size with a script, you need to ensure that all your maps are of the new size manually to prevent problems like the ones described above.


Second, increasing the screen size does not resize the existing assets - and most of the backgrounds and other pictures are sized for the default screen size. This isn't directly appearent because the battlebacks (where it would be most obvious) are actually larger than screen size to allow for the shaking screen effect (shaking the screen with a fitting battleback would result in you seing the map where the battleback is moved), but if you resize the engine you need to resize all screen pictures or get black borders or other problems.
Instead of editing out line 280, you should just set the default size on the settings of Yanfly's scripts back to 544 for width and 416 for height (Yanfly set it to 640 x 416 by default in his scripts). 

If I edit out line 280 of the script.  The window isn't as big when you go full-screen,



And since you commented that line, you should also notice that your screen size even in not full screen was smaller because you're now using 544x416 instead of Yanfly's 640x416 setting ( that code is for the game window as a whole, not just when you go FS mode). I'm even amazed that you didn't notice it. Do you always run in FS mode? 

If anyone finds a way to keep the full-screen specs without removing this line, please let me know.

If you do as Andar said, which is make your new maps at least the size of the new minimum then it should work fine even in full screen.


If you go with Yanfly's setting of 640x416, your maps would need to be at least 20x13. So any map that is smaller will ofc have problems.
Just a small correction.


640 x 480 is not 20 x 13 tiles, but 20 x 15 tiles.


Make your maps and pictures that size and you should have no problems.
@Kes Yanfly's core defaults to 640x416, not 640x480 (which is the more common size and also the maximum possible for Ace).


I never understood why Yanfly did that, but as a result if you use the core script without edits, your minimum map size would be 20x13 tiles as stated above.
My bad, I never noticed that.  In which case, I take back my correction.

Original thread: https://forums.rpgmakerweb.com/threads/full-screen-offset.73226/