Hi, my name is Zekarius, and I have been using RPGMaker since VXAce. I was starting to get really proficient with ruby and then, just recently, I acquired MV to see if the more powerful graphics engine and whatnot was worth making games in. I have decided I would like to make games in MV but the scripting is really throwing me for a loop. One thing I loved to do whilemaking games in VXAce was using events that called scripts to make custom face graphics for the message window, as seen in this VXAce tutorial here: http://forums.rpgmakerweb.com/index.php?/topic/38406-eventing-tutorial-for-creating-custom-text-windows/&_fromLogin=1#replyForm
I cannot seem to replicate this in MV (or really make any scripting work) even though I am rather familiar with javascript. I have tried something like:
var x = Graphics.width * 1/5 + 4;
var msgwindow_height = new Window_Message.windowHeight();
var y = Graphics.height - (2 * msgwindow_height) + 4;
var w = 120;
var h = 120;
var win = new Window_Base(x, y, w, h);
win.drawFace("Nature", 5, 0, 0);
by calling it inside an event, but this just gets me an error message saying that "undefined is not a function." I would greatly appreciate if anyone could point me in the right direction or even give me some things to try. After seeing the beautiful windows and whatnot, I would really hate to have to go back to VXAce just because I can't make the code work for me in MV.
I cannot seem to replicate this in MV (or really make any scripting work) even though I am rather familiar with javascript. I have tried something like:
var x = Graphics.width * 1/5 + 4;
var msgwindow_height = new Window_Message.windowHeight();
var y = Graphics.height - (2 * msgwindow_height) + 4;
var w = 120;
var h = 120;
var win = new Window_Base(x, y, w, h);
win.drawFace("Nature", 5, 0, 0);
by calling it inside an event, but this just gets me an error message saying that "undefined is not a function." I would greatly appreciate if anyone could point me in the right direction or even give me some things to try. After seeing the beautiful windows and whatnot, I would really hate to have to go back to VXAce just because I can't make the code work for me in MV.