RMMZ Way to have UI in different resolutions than the game in MZ/MV?

ZoeTornado

Villager
Member
Joined
Oct 5, 2021
Messages
7
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Hello Makers!

I have a question that is a little beyond my ken regarding the game's engine:
Is there a way to render the game such that the UI layer (menus/text boxes/etc) can be rendered in a high-resolution (such as 4k/1080p) while the rest of the game remains at a lower resolution but is then "stretched" to match the UI layer in the "actual" resolution? This would make it so the game art and logic operates on its own native resolution map with its relative coordinates and such (just like how the game already does this when you maximize the window and it "stretches" the screen but the games x/y coords still map to the internal resolution).

I've seen this done in other games before where the player can have a setting for higher-res UI than the "game" part is rendered in which allows crisper text and such on the UI layer, but the game part maintains a separate resolution. And I've also noticed the section in the database system which allows for a different UI resolution to be specified but I'm not sure how to use that if that indeed allows for this idea to work in such a way as to allow for the player to choose their own appropriate resolution via code. (If it can even be done inside the game itself?)

Is this type of behavior possible with the RPG Maker MZ engine (or the MV if for some weird reason it only works on one or the other)?

I know the game uses PIXI and nwjs for a lot of the backend stuff, and while I think it may be possible using something out of those toolkits, would doing something utilizing the lower-layer throw off the way the engine interprets plug-in values and such?

I feel like I have a pretty good grasp of writing/modifying plug-ins, but as far as extensive coding knowledge beyond that scope I don't really quite understand the theory for how the game interacts with the other pieces in such a way to conjure this sort of behavior without some guidance.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,970
First Language
German
Primarily Uses
RMMV
you make the entire game in the high resolution, and use a "change grid size" plugin to increase the number of pixels per grid.

you'll then need two resource sets, one placeholder to work with in the editor, and one set in the true resolution to replace the placeholders when playing. And that last one has to be sized up using "nearest neighbor" mathematics to pretend to be pixelated.

a lot of work to create the resources, but nothing difficult and only a minor plugin needed.
 

Latest Threads

Latest Profile Posts

So technically I just ate sausages that were a year old. Use by date was 12/27/2021. But since those dates are just guesses with no scientific reasoning behind them I'll prolly be fine. Guess I know soon if I'm praying to the Porcelain God.
People laughed at me when I said that Activision Blizzard would get bought up by another company if they didn't fire their execs. Now their value has dipped so much Microsoft is willing to buy the company, likely followed by some heavy terminations if they want to purify the current toxic image of Activision Blizzard.
Pro tip: don't be this person.1642536788532.png

Forum statistics

Threads
118,495
Messages
1,116,366
Members
155,480
Latest member
aSasSSasdadw
Top