(Sorry I'm very new at javascript and yes I haven't read all the RPG Maker MV core plugins. Also my English are not very good. Sorry if maybe I have violate any forum rules, This is my first time going in this forum.)
I want to show an image but the problem is I don't know how to set their size to fit the screen. I tried writing these:
createLayout = function() {
var ayy = ImageManager.ambil_gambar("Layout");
this._layout = new Sprite(ayy);
this._layout.width = Graphics.boxWidth;
this._layout.height = Graphics.boxHeight;
this._field.addChild(this._layout);
};
But after I tested it, the image size still doesn't change. Can anyone help me what should I write to make it work?
I want to show an image but the problem is I don't know how to set their size to fit the screen. I tried writing these:
createLayout = function() {
var ayy = ImageManager.ambil_gambar("Layout");
this._layout = new Sprite(ayy);
this._layout.width = Graphics.boxWidth;
this._layout.height = Graphics.boxHeight;
this._field.addChild(this._layout);
};
But after I tested it, the image size still doesn't change. Can anyone help me what should I write to make it work?