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.