Question about BossCollapse

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've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

Here ...

Sprite_Enemy.prototype.updateFrame = function() {    Sprite_Battler.prototype.updateFrame.call(this);    var frameHeight = this.bitmap.height;    if (this._effectType === 'bossCollapse') {        frameHeight = this._effectDuration;    }    this.setFrame(0, 0, this.bitmap.width, frameHeight);};It's not changing the y-coordinate of the sprite - it's just reducing how much of the original sprite is actually shown.

(I did have this on the original reply, but for some reason, when you use code tags, it often omits everything after the block of code.
Sorry about the wrong location! Thank you so much for your help. 🙂  

Original thread: https://forums.rpgmakerweb.com/threads/question-about-bosscollapse.48615/