Is there a simple way to play animations for skills on allies in front view (MV)

Hello, this is my first time using RPG Maker!
For RPG Maker MV, I want to play an animation before an effect of a skill happens on an ally (example: An ally heal skill), I’ve tried setting the animation position to screen which doesn’t work and using a common event to manually play the animation and then trigger the actual effect which is very clunky for me to make.
I would appreciate a way if anybody can teach me a way to play these animations! I’m willing to learn a plug-in if needed!

I think Yanfly’s Battle Engine Core along with Action Sequence Pack 1 is what you’re looking for. Pack 1 needs Battle Engine Core placed above it in the plugin list. Together they let you control the order of what happens in a skill from the skill’s notebox, so you can play an animation, wait for it to finish, and only then apply the heal.

For a heal that targets one ally, try putting this in the skill’s note box and changing 41 to whatever animation you want to play first:

<target action>
animation 41: target
wait for animation
action effect: target
</target action>

If the skill heals the whole party, use <whole action> and </whole action> instead of the target action tags. If you also want the skill’s own animation, add action animation and another wait for animation right before the action effect line.

When you set the animation position to screen, did the animation not show up at all, or did it play at the same time as the heal? I’m wondering if those need different fixes.

The animation does not show up at all for screen animation skills that target allies

edit:Actually for any ally targetting ally skill animations

Anyways thanks for the plugin! I’ll test it out!

I think MV hides any animation that plays on an actor during front view battles, and that includes Screen position ones. Animations on your allies only show up when the battle is in side view.

If side view works for your game, you can turn it on in the Database under the System tab with the side view battle option. After that, the animations on your allies should appear.

If you want to stay in front view, here’s a small plugin that keeps Screen position animations visible on actors. Make a new text file in your project’s js/plugins folder named FrontViewScreenAnimations.js and paste this in. Then add it in the Plugin Manager and put it at the bottom of the list:

/*:
 * @plugindesc Shows Screen position animations on actors in front view battles.
 */
(function() {
    var _Sprite_Actor_setupAnimation = Sprite_Actor.prototype.setupAnimation;
    Sprite_Actor.prototype.setupAnimation = function() {
        _Sprite_Actor_setupAnimation.call(this);
        this._animationSprites.forEach(function(sprite) {
            if (sprite._animation && sprite._animation.position === 3) {
                sprite.visible = true;
            }
        });
    };
})();

Animations set to Head, Center or Feet will still be hidden in front view. They would play where the actor stands in side view, which is an odd spot on a front view screen.

This works too! thank you

Tiny issue with this plugin after testing
It works but the animation is mirrored

Hmm, the plugin only changes whether the animation is visible, so I’m wondering if something else is flipping it. From what I’ve found, base MV and Battle Engine Core only mirror a skill’s animation when an action sequence asks for it, like animation 41: target, mirror. Does that skill’s note box have a mirror line in it, or are you using any other battle plugins?

If not, try replacing the plugin with this version. It also turns off the mirror on Screen animations that play on an ally:

/*:
 * @plugindesc Shows Screen position animations on actors in front view battles.
 */
(function() {
    var _Sprite_Actor_setupAnimation = Sprite_Actor.prototype.setupAnimation;
    Sprite_Actor.prototype.setupAnimation = function() {
        _Sprite_Actor_setupAnimation.call(this);
        this._animationSprites.forEach(function(sprite) {
            if (sprite._animation && sprite._animation.position === 3) {
                sprite.visible = true;
                sprite._mirror = false;
            }
        });
    };
})();

If it’s still flipped after that, does the same animation look right when it plays on an enemy? That would tell us whether the flip is built into the animation itself.

The skill i used has an empty notebox, i turned off battle core engine and the action pack to test it

about to test the enemy

Ok! It works with this version, both ally and enemy have the same non mirrored animation.
The previous plugin had the ally animation mirrored, but the enemy animation was normal