- Joined
- Sep 14, 2016
- Messages
- 392
- Reaction score
- 76
- First Language
- English
- Primarily Uses
I need an if statement that will check if the actor's attack motion is missile.
var _Scene_Menu_createBackground = Scene_Menu.prototype.createBackground;
Scene_Menu.prototype.createBackground = function() {
if (backgroundMenu) { // if background image is specified, draw it
this._backgroundSprite = new Sprite();
this._backgroundSprite.bitmap = ImageManager.loadPicture(backgroundMenu);
this.addChild(this._backgroundSprite);
} else { // if not:
_Scene_Menu_createBackground.call(this); // call original function
}
};