Hi, I usually am able to debug on my own, but I have been absolutely stumped on this. As far as I can tell, everything is done correctly. Let me know if you need any other code snippet:
Here is the error I'm getting:
Code:
//////////////////////////////////////////////////////////////////////////////////////////////
// Window_Start_2_Options
//
//
var testingMode = PluginManager.Paramaters('testing Mode');
function Window_Start_2_Options() {
this.initialize.apply(this, arguments);
};
Window_Start_2_Options.prototype = Object.create(Window_Command.prototype);
Window_Start_2_Options.prototype.constructor = Window_Start_2_Options;
Window_Start_2_Options.prototype.initialize = function() {
Window_Command.prototype.initialize.call(this, 0, 0);
var width = this.windowWidth();
var Height = this.windowHeight();
};
Window_Start_2_Options.prototype.windowWidth = function() {
return 240;
};
Window_Start_2_Options.prototype.windowHeight = function() {
if (testingMode === true) {
return this.fittingHeight(4);
} else {
return this.fittingHeight(3);
}
};
Here is the error I'm getting:
Code:
TypeError: Cannot read property 'apply' of undefined
at new Window_Start_2_Options (/C:/Users/Lorence/Desktop/Resistance%20is%20Feudal/Phase%202/Resistance%20is%20Feudal%206/js/plugins/ResistanceIsFeudalGameStart.js:139)
at Scene_Map.createStartWindow2Options (/C:/Users/Lorence/Desktop/Resistance%20is%20Feudal/Phase%202/Resistance%20is%20Feudal%206/js/plugins/ResistanceIsFeudalGameStart.js:65)
at Scene_Map.update (/C:/Users/Lorence/Desktop/Resistance%20is%20Feudal/Phase%202/Resistance%20is%20Feudal%206/js/plugins/ResistanceIsFeudalGameStart.js:30)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.update (rpg_managers.js:1907)