Thought I figured out how to use the JS equivalent of viewport with frame, and it does seem to work in my Title Screen plugin:
(realFrame doens't seem to work either, I used https://kinoar.github.io/rmmv-doc-web/classes/sprite.html as reference, if you got a better one, I'd be glad since all the links to the details seem to lead to a 404)
But when I copy the method to a new Scene and change the Scene_Title to Scene_Test it displays the entire image instead of just a 100 by 100 box in the top left corner of the screen.Scene_Title.prototype.drawBackground = function() {
var bitmap = ImageManager.loadTitle1('TitleBG');
var bg = new Sprite(bitmap);
this._bg = bg;
this._bg._frame = new Rectangle(0,0,100,100);
this.addChild(bg);
}
(realFrame doens't seem to work either, I used https://kinoar.github.io/rmmv-doc-web/classes/sprite.html as reference, if you got a better one, I'd be glad since all the links to the details seem to lead to a 404)
