MV Yanfly Visual State FX Issue- Attack Animations play behind Enemies with State Animations in Front View Battles

I recently wanted to try giving enemies in my games their own idle animations using Visual State FX in my front view battle system. I'm wanting to do this because I also want some states that will get applied to enemies in my games to also have state animations played on them.
The issue I'm having at the moment is that when an attack animation is played on the enemy, the attack animation appears beneath them instead of on top of them, which looks bad.
I've tried looking up solutions to this but I cannot find anyone else that has had a similar issue or found a solution, so I thought I should ask here directly.
Worst case scenario I'll just drop the idea, but I would love to have this in my game if someone can help me find a solution to this.
I'm a bit confused by your description of the issue.

Can you provide a screenshot of what you're talking about?

Are you using Visual State FX to create another version of the enemy sprite? If it's something like that, it's not clear why you wouldn't just be using side-view battle and move things around so it looks like front-view.
Here's a screenshot of the issue I'm having.

Basically all my party members use a Visual State FX state to have an idle animation in game so I'm now trying to do the same thing for my enemies. When an attack animation plays on the characters it goes in front of them as it should, I believe thanks to another plugin I have of DreamX_Ext_BattleStatusCore.

But for enemies it seems to play the attack animations behind them instead. At first I thought this might be caused by an animation priority issue so changed up the order of my animations so that the enemy's idle animation is lower on the list than the attack animations, but that didn't fix the issue.
As for why I'm using front-view for all this, it's so I can have the battle screen look how I have it now and it's also the style I used for my previous games. I'll admit, I don't know how well I could adjust everything in my battle screen to look like this again if I converted to a side-view battle system either.

1708835224061.png
So turning on the Side View battle system seems to fix this issue, but if I go that route my actor's sprites are in the wrong place, so I would need to figure out how to reposition them to where I want them to be as well as remove the shadow that appears beneath their feet.
How I did that with my front view was that the character's animations would appear where their face icon would appear thanks to the settings I have in the DreamX_Ext_BattleStatusCore plugin and as such they would automatically reposition with more or less characters.

So my solutions seem to either be find a way to have my attack animations be layered on top of my enemies with Visual State FX state animations in front view, or figure out how to set up the side view actors so they match up to how I have them in front view.

Edit: Managed to edit the side view to look close to my front view system, only to find out that now the attack animations on my player characters are being shown behind their Visual State FX state animations...
If anyone can help me in solving either the front view issue where attack animations are shown being played behind Enemies with Visual State FX state animations or the new issue of in side view I have attack animations being played behind Actors with Visual State FX state animations, that would be great please. I've tried adjusting multiple settings including which characters are shown on top in Yanfly's Battle System Core plugin, but so far nothing seems to have fixed either issue 🙁
Basically all my party members use a Visual State FX state to have an idle animation in game
Well, per my original post, my suggestion would be to not do that, and put that motion in their SV battler sheet instead. By default, the motion marked Step Forward is used by the engine during idle time.

if I go that route my actor's sprites are in the wrong place, so I would need to figure out how to reposition them to where I want them to be
There are many options. There's a plugin that came with your MV installation called SVActorPositions, in the dlc\KadokawaPlugins folder.

There's also a plugin parameter for it in Yanfly's Battle Engine Core, amongst surely others that would come up with a Google.

as well as remove the shadow that appears beneath their feet.
Again, Yanfly's Battle Engine Core has a parameter for this, or you can edit the file in your project's img\system folder (I think it's Shadow1, but you can figure it out) to be empty and transparent. Going that route would also remove it from the small enemies, I believe.

Edit: Managed to edit the side view to look close to my front view system, only to find out that now the attack animations on my player characters are being shown behind their Visual State FX state animations...
If you're going the side-view that looks like front-view route, why are there still Visual State FX things involved? The whole point of that method would be to make all of the motions come from actual battler sheets (e.g. you'd use SV battler spritesheets for your enemies).

I'm encouraging this just because the whole reordering of graphics layers is not a simple process in MV. You have to change what sprites are being drawn as a child of which layer in the scene which could require notable rewriting of the plugin's code. All of the above you can do by yourself with GIMP.
Well, per my original post, my suggestion would be to not do that, and put that motion in their SV battler sheet instead. By default, the motion marked Step Forward is used by the engine during idle time.


There are many options. There's a plugin that came with your MV installation called SVActorPositions, in the dlc\KadokawaPlugins folder.

There's also a plugin parameter for it in Yanfly's Battle Engine Core, amongst surely others that would come up with a Google.


Again, Yanfly's Battle Engine Core has a parameter for this, or you can edit the file in your project's img\system folder (I think it's Shadow1, but you can figure it out) to be empty and transparent. Going that route would also remove it from the small enemies, I believe.


If you're going the side-view that looks like front-view route, why are there still Visual State FX things involved? The whole point of that method would be to make all of the motions come from actual battler sheets (e.g. you'd use SV battler spritesheets for your enemies).

I'm encouraging this just because the whole reordering of graphics layers is not a simple process in MV. You have to change what sprites are being drawn as a child of which layer in the scene which could require notable rewriting of the plugin's code. All of the above you can do by yourself with GIMP.
My main reason for sticking with Visual State FX for the idle animations is because I also want to use it for actual state animations in my game. This idle animation was basically me testing the waters of the idea.
Looking into Yanfly's Animated Sideview Enemies as well as the base RPG Maker Sideview Actors shows I would be limited to only three frames of animation sadly and I would prefer to have a few more than that, approximately at least 10 frames for each animation I may need.
From the sounds of it though it seems I'm limited in what I can do within RPG Maker then, which is fine of course and I appreciate you trying to help me to solve this issue.
Looking into Yanfly's Animated Sideview Enemies as well as the base RPG Maker Sideview Actors shows I would be limited to only three frames of animation sadly and I would prefer to have a few more than that, approximately at least 10 frames for each animation I may need.
There are other plugins, such as Yami's Sideview Battlers, which allow you to make as many frames as you like. And that plugin even allows you to define custom motions, if you need more than are defined in the SV battler standards which would layer correctly with animations.

This is just how I'd go about implementing this, someone else may have a different suggestion.
There are other plugins, such as Yami's Sideview Battlers, which allow you to make as many frames as you like. And that plugin even allows you to define custom motions, if you need more than are defined in the SV battler standards which would layer correctly with animations.

This is just how I'd go about implementing this, someone else may have a different suggestion.
Ooh, I'll look into that then, by any chance do you know if it's compatible with Yanfly's plugins? I don't want to have issues happen because of plugins conflicting.
Thank you for the suggestion though, if they do work then this is perfect for me! 😀
Edit: Also could I use Yami's Sideview Battlers for the enemies too? If I use it in conjunction with Yanfly's Animated Sideview Enemies plugin?
Yeah, look up the plugin and read through it - it's written to be compatible with Yanfly's Battle plugins and Action Sequences.
Yeah, look up the plugin and read through it - it's written to be compatible with Yanfly's Battle plugins and Action Sequences.
Perfect, if this does work how I'm wanting it to then you've helped me out greatly! 😀
Thank you so much for putting up with my idea and helping me to hopefully find a solution! 🙂
I don't know if I should start another forum post about this or not but I felt I might want to bring it up here anyway. If a moderator or someone feels I should make a separate post about this then do please let me know and I'll be more than happy to do so.

Anyway, I'm now using Yami's Sideview Battlers for my enemies and for the most part it works perfectly now that I've got it set up. My only issue that I cannot seem to find a solution for is that my attack animations now seem to not be playing on the center of my enemies. I've kept the sprites the same size as their non-animated versions so they matched up and because I want a deactivated version of my robot enemy which won't be animated, but for some reason with the animated sprites my attack animations are playing higher on my animated enemies than on their non-animated counterparts. 🙁
I've tried adjusting their sprite sizes, adjusting the anchor values of the sprites, but nothing seems to get the animations to strike where I want on my enemies. Heck, messing with the anchor values actually caused an issue where the sprites would be moved, but the selection arrow and HP bar wouldn't have moved accordingly.
Screenshots to show the differences in where an attack animation is played between the animated and non-animated enemies:
Spoiler: Animated Enemy
1708898787402.png

Spoiler: Non-Animated Enemy
1708898836224.png
I'm hoping that someone might be able to tell me what I can do to fix this issue please?

Edit: Found a solution to this issue after looking around some more online, apparently it's an issue with the 1.19 version of Yanfly's Sideview Enemy Battlers plugin, specifically the update was meant to fix an animation issue with sideview enemies, but in this case it was actually causing the issue that I was experiencing. Having commented out that code my attack animations are now playing correctly on my enemies! 😀
I believe this should actually be all the issues related to this post, so any mods if you want to close this thread that is fine with me, thank you for your help, ATT_Turan!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-visual-state-fx-issue-attack-animations-play-behind-enemies-with-state-animations-in-front-view-battles.166136/