- Joined
- Mar 3, 2014
- Messages
- 43
- Reaction score
- 16
- First Language
- English
- Primarily Uses
For MV 1.6.0+
[EDIT] Poryg is right, constructor is constructor. MV scenes call initialize in their constructor and so I have edited the template to follow suit since this is for MV after all. MV also passes arguments to initialize so I have made that change too, though no Scenes in MV pass arguments to initialize...
Code:
class Scene_Es6_Template extends Scene_Base {
//constructor is the new initialize
constructor() {
super(...arguments);
}
initialize() {
super.initialize();
}
create() {
super.create();
}
start() {
super.start();
}
update() {
super.update();
}
isReady() {
return super.isReady();
}
isBusy() {
super.isBusy();
}
prepare(arg) {
}
terminate() {
super.terminate();
}
}
Last edited:

