Hi, I'm new in this forum. My English is not very good. So I'm sorry if maybe I have violate any forum rules without my acknowledgement. This is my first time in this forum.
I actually been using RPG Maker since a long time (VX and VX Ace), but MV was very new to me. I want to learn javascript, but so far I dn't gain any significant improvement. That being said, I have a problem about javascript.
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?
Also, I am fuly aware this place is not for asking this kind of stuff, but my post hasn't been approved for long time, so maybe if that post finally been approved then I will edit this post as just an introduction post. Sorry I'm very new at javascript and yes I haven't read all the RPG Maker MV core plugins. Maybe any suggestion on how to read RPG Maker MV core plugins easier or maybe a direction on where should I find any good RPG Maker MV/MZ core plugins documentation? Many thanks for your time and attention.
I actually been using RPG Maker since a long time (VX and VX Ace), but MV was very new to me. I want to learn javascript, but so far I dn't gain any significant improvement. That being said, I have a problem about javascript.
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?
Also, I am fuly aware this place is not for asking this kind of stuff, but my post hasn't been approved for long time, so maybe if that post finally been approved then I will edit this post as just an introduction post. Sorry I'm very new at javascript and yes I haven't read all the RPG Maker MV core plugins. Maybe any suggestion on how to read RPG Maker MV core plugins easier or maybe a direction on where should I find any good RPG Maker MV/MZ core plugins documentation? Many thanks for your time and attention.