Hi, I'm new here.
I was wondering about the script that's used for BossCollapse: I've been looking over it and I noticed that there's no update to the enemy sprite's y coordinate but in the battle it is being moved down toward the screen. Where in the script does it tell the enemy sprite to move toward the bottom of the screen?
Here's the script in question from rpg_sprite.js
Sprite_Enemy.prototype.updateBossCollapse = function() {
this._shake = this._effectDuration % 2 * 4 - 2;
this.blendMode = Graphics.BLEND_ADD;
this.opacity *= this._effectDuration / (this._effectDuration + 1);
this.setBlendColor([255, 255, 255, 255 - this.opacity]);
if (this._effectDuration % 20 === 19) {
SoundManager.playBossCollapse2();
}
};
Any help or insight would be really appreciated.
I was wondering about the script that's used for BossCollapse: I've been looking over it and I noticed that there's no update to the enemy sprite's y coordinate but in the battle it is being moved down toward the screen. Where in the script does it tell the enemy sprite to move toward the bottom of the screen?
Here's the script in question from rpg_sprite.js
Sprite_Enemy.prototype.updateBossCollapse = function() {
this._shake = this._effectDuration % 2 * 4 - 2;
this.blendMode = Graphics.BLEND_ADD;
this.opacity *= this._effectDuration / (this._effectDuration + 1);
this.setBlendColor([255, 255, 255, 255 - this.opacity]);
if (this._effectDuration % 20 === 19) {
SoundManager.playBossCollapse2();
}
};
Any help or insight would be really appreciated.