MZ Change Resolution in-game without discrepancies (for H.Q. assets)

My Problem:
I make movie cutscenes for my game in 1920x1080p resolution, but when inserting it into my game the quality has to be lowered since my game's resolution is 1280x720.

This is the same for bust sprites that I have made in much higher quality, but have to be downscaled to be displayed correctly.

Now, making the player require a Full HD monitor to play my game would be insanity, since I only really need that for sprites and cutscenes, since the rest of the game is in pixel art and should remain untouched.

The Ideal Fix(?):

If the player has a 1920x1080 or higher 16:9 monitor, I would live to have an option in the settings to set the resolution in order to see the cutscenes and bust sprites in Full HD.

The map, the pixel art assets and the Ul should be shown like they are in 1280x720 with all resolutions and there should be no discrepancies between resolutions. For example having a bigger view of the map.

Bonus:
- It automatically adapts to the monitor when the game is started.

- When using a 4:3 resolution, black bars are shown to display the game correctly like in this image in the right.

1000246457.png


The game would essentially look the same in every aspect expect when a high quality image or video is shown. In that case, if the resolution is set to Full HD, the HQ assets are shown and the difference would be perceivable.
Now, making the player require a Full HD monitor to play my game would be insanity
Why? 1920x1080 has been the standard monitor resolution for many years now, and the vast majority of people have that or higher. I know zero people with a smaller display than that.

Especially if you're going to be distributing your game on Steam or any other site oriented toward people who play video games. One has to actively search and probably pay more to get a monitor at a smaller size.

As for the rest of it, you're kind of mixing-and-matching terms. "Resolution" refers to pixels per distance - e.g. your monitor's resolution might be 1920x1080 across its 17.5 inch diagonal size. But you can also change to a different resolution in Windows which will cause the monitor to use more than one of its pixels to display one pixel from the display output.

Whether the size of your game window is large enough to fully display a given image is really not a function of resolution. It is not changing how many pixels are displayed in the same amount of space on your monitor.

If you run your game and click the maximize button, the game window will expand to fit your monitor and it will stretch all of the graphics proportionately larger - that's affecting the game's resolution, which is actively what you do not want.

This post has code you can put in a plugin which will prevent your game's resolution from changing - so you can use fullscreen plugins and it won't stretch your graphics.



From there, you can do conditionals in your events to see what the current game window size is and determine which image/video you load.
So RPG Maker scales up the resolution when it's maximed? :0

Then if I understood correctly, when the player fullscreen my game it would go from 1280x720 to 1920x1080 if they have a full hd monitor.

In that case, how can I know if the game is put in fullscreen so that when it's maximed it meets the condition to replace the assets with the high quality ones that have more pixels?

Why? 1920x1080 has been the standard monitor resolution for many years now, and the vast majority of people have that or higher. I know zero people with a smaller display than that.
Mh, I don't know about that really!
Sure, Full HD is the standard, but in my case I have seen most people that play rpg maker games run them on potato laptops with screen that don't have enough pixels for 1080p. Agian, most of the game is pixelart, so I would prefer accessibility over graphics.
In that case, how can I know if the game is put in fullscreen so that when it's maximed it meets the condition to replace the assets with the high quality ones that have more pixels?
Put into the script field of a Conditional Branch
Code:
window.innerWidth >= 1920 && window.innerHeight >= 1080

Mh, I don't know about that really!
Sure, Full HD is the standard, but in my case I have seen most of people that play rpg maker games run them on potato laptops with screen that don't have enough pixels for 1080p.
I don't know where you're seeing these "most people" or if things are different in your country or your specific area.

But for laptops, just like monitors, 1920x1080 has been the standard for a long time. I mean, you don't get much more potato than this, at a whopping $119 (and given the RAM and lack of graphics processing, it probably couldn't play an MV game) but its display is still 1920x1080.


These laptops you're talking about would have to be years old, and any user with basic computer knowledge would not expect to be able to play a modern video game on them.

It's perfectly fine if you still want to make your game accessible to that standard, but I don't see how you can refute that the majority of computers have at least a 1080p display.
Thank you for you help as always!! :LZSproud:

These laptops you're talking about would have to be years old, and any user with basic computer knowledge would not expect to be able to play a modern video game on them.
I think that's the point! There is still a lot of people using old laptops that work great for rpg maker games, so I also want to make the game playable for those people who don't need or can't afford a new pc 🙂

This is more work for me I suppose haha! But even if I'm making a modern game I still want to put efforts for those with not-so modern hardware.
Just notice I originally posted the incorrect code, I've corrected it above.
From steam:
1729176881727.png
I think I explained myself enough D:
I know that, but my game is for the most part pixelart (16x at that!), so having a 1920x1080 as the minimum resolution for my game really is overkill.

I chose 1280x720 because it shows enough of the map and because my hq assets, even when downscaled, don't look too bad.
I think I explained myself enough D:
I know that, but my game is for the most part pixelart, so having a 1920x1080 resolution for my game really is overkill.
Umm, OK.

So there are 2 kinds of solutions:

1. The game runs in 1920x1080, but you find a way to resize the window/game screen. The downside of this is pixelart doesn't look well when scaled down.

2. Make a plugin to change the resolution (Graphics.resize) by detecting the user's monitor resolution. The downside of this solution is your bust images, for example, will be too big if the user has a smaller screen, unless you scale them down to fit current resolution but it is not easy to do without some script.
Umm, OK.

So there are 2 kinds of solutions:

1. The game runs in 1920x1080, but you find a way to resize the window/game screen. The downside of this is pixelart doesn't look well when scaled down.

2. Make a plugin to change the resolution (Graphics.resize) by detecting the user's monitor resolution. The downside of this solution is your bust images, for example, will be too big if the user has a smaller screen, unless you scale them down to fit current resolution but it is not easy to do without some script.
I'm trying to implement ATT_Turan's solution, as I can detect if the game is in fullscreen (since the resolution becomes 1920x1080) and use the correct graphics.

Now my question is, if I reposition the bust pictures when the game is detected fullscreen to a X/Y position that normally would not be seen or cut in 1280x720, would that work? I'm going to test this out.

Edit: That appears to not be the case D:

How could I have everything at the same position and size as the 1280x720 resolution? My images would appear too big.

I want to adapt everything to the higher resolution and have them show more pixels, but having everything at the same position.

2. Make a plugin to change the resolution (Graphics.resize) by detecting the user's monitor resolution. The downside of this solution is your bust images, for example, will be too big if the user has a smaller screen, unless you scale them down to fit current resolution but it is not easy to do without some script.

I suppose this is the only way!

Even if used 1920x1080 resolution by default, the UI is super small and I don't know how to to make it bigger.

1729179206345.png

1729179239649.png

Original thread: https://forums.rpgmakerweb.com/threads/change-resolution-in-game-without-discrepancies-for-h-q-assets.172656/