So i am currently trying to create my own scene.
The scene should be able to show text and choices.
So this is my code right now and obviously it doesn't work, but i don't know why.
What am i missing?
The scene should be able to show text and choices.
So this is my code right now and obviously it doesn't work, but i don't know why.
What am i missing?
Code:
function Scene_Test() {
this.initialize(...arguments);
}
Scene_Test.prototype = Object.create(Scene_Message.prototype);
Scene_Test.prototype.constructor = Scene_Message;
Scene_Test.prototype.initialize = function () {
Scene_Message.prototype.initialize.call(this);
};
Scene_Test.prototype.create = function () {
Scene_Message.prototype.create.call(this);
};
Scene_Test.prototype.start = function () {
$gameMessage.setFaceImage("", 0);
$gameMessage.setBackground(0);
$gameMessage.setPositionType(0);
$gameMessage.setSpeakerName("speakerName");
$gameMessage.add("Test");
Scene_Message.prototype.start.call(this);
};
Scene_Test.prototype.isStarted = function () {
return Scene_Message.prototype.isStarted.call(this);
};
Scene_Test.prototype.isReady = function () {
return Scene_Message.prototype.isReady.call(this);
};
Scene_Test.prototype.update = function () {
Scene_Message.prototype.update.call(this);
};