Change Screen resolution mid-game

Hello!

I have a problem for my project, I'd like to change the screen resolution for some specific scenes to a tall format.
I've been digging around in the forums but all I could find so far were either plugins that permanently change the resolution to one setting or let the player themself choose which resolution they want.

I'm wondering now, do I necessarily need a plugin for this or is it possible to just use a script call to quickly change the resolution for a while and change it back after that scene is over?
Plugins are basically script that are permanently embedded into the engine.

And most likely you'll need a plugin - if you use a script call that would not be saved and be back to default the moment the game was quit and or reloaded.

What you need is one of the plugins that allow the player to change the screen size, and then use a specific command to change that decision by the command instead of the player choice.
That way the plugin will still save the current setting and avoid the problem mentioned above.
And most likely you'll need a plugin - if you use a script call that would not be saved and be back to default the moment the game was quit and or reloaded.
If the OP only wants the change to last for the duration of a scene, wouldn't the script call be enough?
If the OP only wants the change to last for the duration of a scene, wouldn't the script call be enough?
yes,
Graphics.resize(x,y); will work great 🙂

edit: (i dont' know if it works in mv 🙂 teaches me not to comment on mv stuff
Ha ha nice idea, but unfortunately it doesn't seem to work. It gives me the error message "TypeError
undefined is not a function". But thank you for trying anyway! 🙂
.yes,
Graphics.resize(x,y); will work great 🙂

edit: (i dont' know if it works in mv 🙂 teaches me not to comment on mv stuff
try this: maybe 🙂 (not an expert)

(also keep in mind from programming point of view, doing this stuff is very icky, that's probably why its not advised, its not wrong per say but it can trigger some cautionary considerations, ie make it so that it won't crash in different devices and configurations, not sure how, perhaps smaller resolutions, which beats the purpose of doing this, see the problem ? 🙂
1681016033237.png
Graphics.resize(x,y); will work great 🙂
try this: maybe 🙂 (not an expert)
I appreciate you're trying to help, but if you don't actually know what you're doing, offering all these things are just random guesses and not helpful to the OP.

Resizing a bitmap has nothing to do with the screen resolution of the game, and what you highlighted is not a useful reference to actually using the Bitmap.resize() method on a specific game object.

I'm also not sure why this is "very icky" or how it could cause crashes - almost every professional computer game I've played for 30 years offered some choices of resolution. 😉

@yumekakaro Unsolicited advice - I think what you want to do is really weird. Actually changing the shape of the game window for certain areas of the game would be pretty off-putting to me as a player. It could also screw with people's layout of the game on their monitor (or even go off their screen if you're not careful). I'd stick with manipulating the shapes of the maps.

You can do what you want with window.resizeBy(x_adjustment, y_adjustment);
You probably want to use that in conjunction with window.moveBy(x, y); to keep the window centered on the same position.
I appreciate you're trying to help, but if you don't actually know what you're doing, offering all these things are just random guesses and not helpful to the OP.

Resizing a bitmap has nothing to do with the screen resolution of the game, and what you highlighted is not a useful reference to actually using the Bitmap.resize() method on a specific game object.

I'm also not sure why this is "very icky" or how it could cause crashes - almost every professional computer game I've played for 30 years offered some choices of resolution. 😉

@yumekakaro Unsolicited advice - I think what you want to do is really weird. Actually changing the shape of the game window for certain areas of the game would be pretty off-putting to me as a player. It could also screw with people's layout of the game on their monitor (or even go off their screen if you're not careful). I'd stick with manipulating the shapes of the maps.

You can do what you want with window.resizeBy(x_adjustment, y_adjustment);
You probably want to use that in conjunction with window.moveBy(x, y); to keep the window centered on the same position.
ah sorry my lord 🙂 carry on

Original thread: https://forums.rpgmakerweb.com/threads/change-screen-resolution-mid-game.156507/