RPG Maker Forums

Hello everyone! This is my first post here and I am starting to learn Javascript and want to learn using RPG Maker MV for many personal projects.

I have been tinkering for practice in the Maker and got a lot of interesting results, but my next step is to draw faces on a Window. I wanted to use Window_Base.prototype.drawFace but have not got any luck so far. The code runs but no face shows up. My code is below:

(function(){

function Window_MyWindow2() {
this.initialize.apply(this, arguments);
}

Window_MyWindow2.prototype = Object.create(Window_Selectable.prototype);
Window_MyWindow2.prototype.constructor = Window_MyWindow2;

Window_MyWindow2.prototype.initialize = function(x,y,height,width) {
Window_Selectable.prototype.initialize.call(this,x,y,height,width);

this.refrescar();
};

Window_MyWindow2.prototype.refrescar = function() {
this.drawTextEx('\\C[20]x= ' + this.canvasToLocalX(500) + '\n\\C[0]y= ' +
this.canvasToLocalY(150), 0,50 );
this.drawFace('PER4',0,0,0,100,100);
}

var _Scene_Map_createAllWindows2 = Scene_Map.prototype.createAllWindows;
Scene_Map.prototype.createAllWindows = function() {
_Scene_Map_createAllWindows2.call(this);
this.createMinimapWindow2();
};

Scene_Map.prototype.createMinimapWindow2 = function() {
this._minimapWindow2 = new Window_MyWindow2(200,30,600,570);
this.addChild(this._minimapWindow2);
};

// }


})();

This has many things that are just for practice purpose, but my goal is to draw a character face on the window. The file name is located where it should be and it is called PER4, but so far no luck.

Thanks. Any help is appreciated.

Latest Threads

Latest Posts

Latest Profile Posts

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.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top