- Joined
- Aug 19, 2020
- Messages
- 9
- Reaction score
- 2
- First Language
- German
- Primarily Uses
- RMMV
Hi,
I want to make a plugin for my game which includes that it will need to create its own window. So I searched online for some tutorials but for some reason, even-though my code is the exact same as theirs, it doesn't work, and I always get the same error message in the console:

I hope that someone knows what is going on. I think I miss something but I don't know what
Here is my code:
I want to make a plugin for my game which includes that it will need to create its own window. So I searched online for some tutorials but for some reason, even-though my code is the exact same as theirs, it doesn't work, and I always get the same error message in the console:

I hope that someone knows what is going on. I think I miss something but I don't know what
Here is my code:
JavaScript:
function MyWindow() {
this.initialize.apply(this, arguments);
}
MyWindow.prototype = Object.create(Window_Base.prototype);
MyWindow.prototype.constructor = MyWindow;
MyWindow.prototype.initialize = (x, y, width, height) => {
Window_Base.prototype.initialize(x, y, width, height);
}
MyWindow.prototype.update = () => {
Window_Base.prototype.update.call(this);
}
let scene = SceneManager._scene;
let myWindow = new MyWindow(200, 200, 300, 300);
scene.addChild(myWindow);


