RPG Maker Forums

Hello.

I am new in RPG Maker MV and not-so-new in Javascript. I am making a game that heavily modifies the basic js code from RPG Maker MV but there is something that so far has eluded me.

I want to have dynamic resolution change in my game. By "dynamic", I mean that in some situations the game switches from resolution A to B and then after a while back to A, without any user input. This is because I want to have some hi-res pictures (1532x1270) in my games for cutscenes, but the core of my game I want in the standard resolution (816x624).

I almost got what I want. Dont know if it is the correct way, but I did is to create a function setResolution as follows:

SceneManager.setResolution = function(w,h) {

SceneManager._screenWidth = w;
SceneManager._screenHeight = h;
SceneManager._boxWidth = w;
SceneManager._boxHeight = h;
Graphics.initialize(w,h);

}

It kind of works, except that when you change to the higher resolution, after swithcing to the lower resolution once, text is not displayed. I investigated and noticed that this is because the area from displaying texts keeps confined in the lower resolution, at the upper left part of the screen. So, text that is sent to be displayed at the bottom does not display. It is also important to mention that when the game starts, it has a cutscene so it begins at the high resolution (I use Yanfly Core Engine for that), with the text displaying correctly. When I exchange to the lower resolution, it stays ok, but in the next cutscene, resolution increases and the text is not displayed.

I dont know which parameter I should use to increase this area. I also suspect I must refresh something in this function. I hope that the experts here can help me. Thanks.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top