Hey. First time poster after taking quite a few months to get into RPG Maker MZ.
So, the issue I'm having is a relatively simple one I'm sure, but I just can't figure out any way to do it. I simply want to add an option in the menu to change the screen resolution from 16:9 to 4:3 and vice versa, and have options for different resolutions. My default screen res settings are set for 1920x1080, but I want options for people who might have, say, a 1280x720 monitor, or even a smaller/bigger one than that. This is also being done in an evented title screen rather than the regular title screen.
Whether it be done through the script command or through a common event, I'm fine with either. I just know that none of the forum answers worked for me unfortunately, and I'd rather not make a separate deployment just for 4:3 if it could be avoided. I'm no expert in code by any means. Most I've done was mess around with .ini files for game mods and program a very basic webpage in high school years ago, so the simplest explanations you can give would be greatly appreciated. Thanks!
For context, I've attempted it using the following options and it just seems to do nothing for me. I also use VisuStella's Options Core, which makes the [LZ] Change Screen Resolution Ingame plugin incompatible.
1. window.screen.width 1280 window.devicePixelRatio;
window.screen.height 720 window.devicePixelRatio;
2. window.resizeBy(854, 480);
window.moveBy(0, 0);
3. SceneManager.changeGraphicResolution = function(1440, 1080) {
this._screenWidth = 1440;
this._screenHeight = 1080;
Graphics._width = 1440;
Graphics._height = 1080;
};
So, the issue I'm having is a relatively simple one I'm sure, but I just can't figure out any way to do it. I simply want to add an option in the menu to change the screen resolution from 16:9 to 4:3 and vice versa, and have options for different resolutions. My default screen res settings are set for 1920x1080, but I want options for people who might have, say, a 1280x720 monitor, or even a smaller/bigger one than that. This is also being done in an evented title screen rather than the regular title screen.
Whether it be done through the script command or through a common event, I'm fine with either. I just know that none of the forum answers worked for me unfortunately, and I'd rather not make a separate deployment just for 4:3 if it could be avoided. I'm no expert in code by any means. Most I've done was mess around with .ini files for game mods and program a very basic webpage in high school years ago, so the simplest explanations you can give would be greatly appreciated. Thanks!
For context, I've attempted it using the following options and it just seems to do nothing for me. I also use VisuStella's Options Core, which makes the [LZ] Change Screen Resolution Ingame plugin incompatible.
1. window.screen.width 1280 window.devicePixelRatio;
window.screen.height 720 window.devicePixelRatio;
2. window.resizeBy(854, 480);
window.moveBy(0, 0);
3. SceneManager.changeGraphicResolution = function(1440, 1080) {
this._screenWidth = 1440;
this._screenHeight = 1080;
Graphics._width = 1440;
Graphics._height = 1080;
};