MV YEP Animated SV Enemies and Action Sequence Issue

Hi All,

I noticed an issue with these two plugins, if you use the "Face" command in an action sequence it does not work. The enemy battler continues to face the same direction. For instance:

jump user: 100, 20
move user: forward, 100, 20
face user: backward

Should have the battler face backwards while jumping forward. And it works without the animated SV enemies plugin turned on. But not together. I have tried it in a fresh game as well as confirmed the plugin order is correct. Does anyone know if this is a known issue or if it can be fixed?

As always any help is greatly appreciated.
Hi All,

I noticed an issue with these two plugins, if you use the "Face" command in an action sequence it does not work. The enemy battler continues to face the same direction. For instance:

jump user: 100, 20
move user: forward, 100, 20
face user: backward

Should have the battler face backwards while jumping forward. And it works without the animated SV enemies plugin turned on. But not together. I have tried it in a fresh game as well as confirmed the plugin order is correct. Does anyone know if this is a known issue or if it can be fixed?

As always any help is greatly appreciated.
Strange, in my case it works fine with the same two plugins. I don't have access now, but I could have a look when I get home, when a few hours...
I remember, though, that if you have Mog Battler motion, it doesn't work, so I had to remove it.
if you have it, try disabling it and test again
Agreed, I can't duplicate the bug. In a new test project, with only the required plugins, it works fine for me.

1729514567094.gif
Thank you both for the reply.

Oh I guess it works for enemy sprite sheets, I never used them. I was using this for the breathing effect on static enemies. That's where it seems to not work.
Agreed, I can't duplicate the bug. In a new test project, with only the required plugins, it works fine for me.

View attachment 320982
Oh I guess it works for enemy sprite sheets, I never used them. I was using this for the breathing effect on static enemies. That's where it seems to not work.
...okay. That's a pretty specific set of circumstances to not specify 🤣

But in that case, the jump, move, and breathing are all irrelevant - changing the facing direction itself just doesn't work with static battlers when the SV Enemies plugin is installed.

That's a known issue, and the fix is to paste the below code into a text editor, save as a *.js file, and include as a plugin beneath the Animated Enemies. From my plugin fixes thread in my signature.

Code:
Sprite_Enemy.prototype.updateScale = function() 
{
    if (!this._svBattlerEnabled) 
    {
        var mirror = this.scale.x > 0 ? 1 : -1;           
        this.scale.x = this._enemy.spriteScaleX();
        this.scale.x = Math.abs(this.scale.x) * mirror;
    } 
    else
        this.scale.x = this._enemy.spriteScaleX();

    this.scale.y = this._enemy.spriteScaleY();
    if (this._stateIconSprite) 
    {
        var safe = 1 / 100000;
        var sprite = this._stateIconSprite;
        sprite.scale.x = 1 / Math.max(safe, Math.abs(this.scale.x));
        sprite.scale.y = 1 / Math.max(safe, Math.abs(this.scale.y));
    }
};
yeah, sorry i didn't even think of that when i was trouble shooting. But this worked like a charm. Thank you so much!!!

Original thread: https://forums.rpgmakerweb.com/threads/yep-animated-sv-enemies-and-action-sequence-issue.172730/