MV Attack animation timing in YEP Battle Core

Just applying the Battle Core plugin to a project of mine that wasn't previously using it, everything's working fine except for causing some weirdness with the timing of attack animations. I've tried playing with the various plugin settings but can't seem to resolve the following:

1. When my party members use a skill, there's a significant delay before the skill's actual animation plays in which nothing happens for a second or so. I wondered if it was trying to play a sort of 'cast animation' that I wasn't seeing due to using front-view battle, and set all those to 0, but it still happens.

2. On the other hand, when enemies use a skill (it's effectively almost a basic attack, but it's a little different and doesn't use the #1 Attack skill), there's no delay between the "swing" sound and the "whack" damage-taken sound and HP reduction; they all happen simultaneously. Without the plugin there's a brief moment's pause between them, to give the impression of 'a swing and a hit', y'know. I thought that might be to do with "animation base delay" and "animation next delay" and tried changing those values, but it didn't affect this.

This is doubly odd because when my party members use a basic attack, the timing works just fine as it always has; no weird delay, straight into the swing sound, then a brief moment later the damage sound and HP ticks down.

Is there some setting I'm just glancing over and not realising is important? None of my other plugins alter timings, attack animations, etc. The "motion waiting" option also doesn't seem to affect this.

I'm aware of this thread:


And I'm willing to explore what was brought up in it, however, that doesn't cover the 'simultaneous swing and damage' thing I'm getting, and I also think it's notable that the enemies here aren't getting the delay. Like, it feels like it should be possible to apply the "no weird delay" my enemies have to my actors, and the "proper hit timing" my actors have to my enemies, y'know?
Can you give screenshots of your plugin manager, so that we can see what other plugins you're using and how they are ordered?
Yanfly's plugins are known to cause strange effects or errors when they are installed in the wrong order, so that should always be checked.

Other than that, the main function of the battle core is to enable action sequences, which are for sideview and won't happen in frontview. For example the main effect of the action sequence is animating the actor sideview battlers, having them run toward the enemy to hit them.
And I think that might be the delay - the invisible actor battler moving around the screen.

There is a very simple test to proof this: switch to sideview for two or three battles and what the timing there.
if it is the action movement, then you need to replace the default action sequences with some that do not have actor movement (the action sequences have other functions that you might like to keep, only removing actor movement)
Can you give screenshots of your plugin manager, so that we can see what other plugins you're using and how they are ordered?
Yanfly's plugins are known to cause strange effects or errors when they are installed in the wrong order, so that should always be checked.

Other than that, the main function of the battle core is to enable action sequences, which are for sideview and won't happen in frontview. For example the main effect of the action sequence is animating the actor sideview battlers, having them run toward the enemy to hit them.
And I think that might be the delay - the invisible actor battler moving around the screen.

There is a very simple test to proof this: switch to sideview for two or three battles and what the timing there.
if it is the action movement, then you need to replace the default action sequences with some that do not have actor movement (the action sequences have other functions that you might like to keep, only removing actor movement)


Hmm, okay, I switched it to side-view battlers and indeed, the delay before actor actions is due to them stepping forward to cast. I found this guide, so I'll try and mess with it:


Hopefully using this I can remove the delay. Don't know if it will be able to solve the "enemy attacks play swing and hit sounds simultaneously" part, but maybe! I'll have a go.

As for my plugin order, yeah, one thing I tried was checking the recommended order, which seemed to be just "the order they're listed in on the site", so I changed it to that. Hasn't made any difference, but I'm happy to hear any "OMG you should definitely put X there and Y there". Currently it's:

1725641382895.png


(Tangentially on the theme of getting used to this plugin, I've also noticed of all the lines of in-battle text that Battle Core removes by default but adds the option to put back in, there's no option that I can see to put back in "[actor] has fallen!" at knockout. This isn't a big issue since it's pretty obvious when an actor is KO'd, just huh, either didn't realise or I've missed the option somehow.)
(Tangentially on the theme of getting used to this plugin, I've also noticed of all the lines of in-battle text that Battle Core removes by default but adds the option to put back in, there's no option that I can see to put back in "[actor] has fallen!" at knockout.
That's just the death state's apply message:

1725643376403.png


So it should show up if you enable state text.

1725643354490.png
That's just the death state's apply message:

View attachment 317072

So it should show up if you enable state text.

View attachment 317071
Yeah, that's the weird thing, it's been set to true the whole time. Other states' text does show up, just not this one. It's not been deleted or anything, the line is still there in the states list in System.

Meanwhile I'm looking through action sequences--is there a way to see what the default ones are?Clearly there's multiple elements at play (if I just make a blank "setup action" section that also removes the action text, so I'll at least need to put a "display action" note in there) and I want to make sure I don't miss anything else. (Also if I do that there's less of a delay, but there still is one...)

I guess I'm also looking a little wearily at the prospect of having to add a notetag sequence to every skill in the game just to make front-view battle work like it does by default, ahah. We soldier on...
Update on this:

- I've used the thread I linked in the first post's advice to remove the hardcoded delay--well, to take it down from 10 to 2 frames, just in case the plugin does need the tick to avoid breaking something. For some reason the attack delay is still exactly as long? Motion waiting is off, animation timings set to 0...

- I'm also now noticing that for some reason the enemy death sounds are playing twice in a row with the plugin on...? I can't see any setting pertaining to that.

(Plus enemy attacks are still playing the swing and hit sounds simultaneously, plus the death state apply message not showing up...I dunno, it's got me scratching my head like, isn't this an extremely basic plugin everyone and their dog uses? Can it really be this buggy? Could I really just be this bad at using/understanding it??)
is there a way to see what the default ones are?
open up the plugin and ctrl+f for "DefaultActionSetup". you should see them all near it.

For some reason the attack delay is still exactly as long?
what exactly do you mean by attack delay? a delay between which two points?

the snippet in the thread changes the wait between the battler doing the skill's motion and the skill's animation starting. if you mean some delay between the animation and the damage being dealt, it wouldnt change that

Plus enemy attacks are still playing the swing and hit sounds simultaneously
when you say swing and hit, do you mean the swing as in your attack's animation's sound effect and the hit being the sound that plays when a battler takes damage? theres supposed to be a wait for the animation to finish first before the action effect dealing damage and playing the hit sound.

if your animation isnt playing the sound effect on its last frame or is like 3 frames in total length, id doublecheck if the action sequence line "wait for animation" works at all for you. i dont imagine it does anything special in FV, but i dont use it to know😛
open up the plugin and ctrl+f for "DefaultActionSetup". you should see them all near it.
Thanks, helpful to locate!

what exactly do you mean by attack delay? a delay between which two points?

the snippet in the thread changes the wait between the battler doing the skill's motion and the skill's animation starting. if you mean some delay between the animation and the damage being dealt, it wouldnt change that
There is:

1. A brief pause between "X attacks!" (the 'display action' command) and anything else visually happening.
2. Some more time taken up for the SV sprite to do its attack animation (swinging a sword or whatever)

In vanilla MV, 1. doesn't happen at all, and 2. only happens in SV, in FV it doesn't happen since there's nothing to see. But with Battle Core, 1. is present, and 2. happens whether you're in FV or SV, so in FV it just becomes an additional awkward moment where nothing is happening as effectively an invisible SV sprite is waving a weapon around.

when you say swing and hit, do you mean the swing as in your attack's animation's sound effect and the hit being the sound that plays when a battler takes damage? theres supposed to be a wait for the animation to finish first before the action effect dealing damage and playing the hit sound.

if your animation isnt playing the sound effect on its last frame or is like 3 frames in total length, id doublecheck if the action sequence line "wait for animation" works at all for you. i dont imagine it does anything special in FV, but i dont use it to know😛

Yes, sorry, I mean what's referred to as "Enemy Attack" and "Enemy Damage" in the System tab. In vanilla, one plays and then the other, as you say; now both are playing simultaneously.

In any case, since you pointed me to the right code, I started with copying over the default action sequence to reproduce the 'baseline' that was getting me the timing issues I've been talking about, so at least it was running 'manually' off stuff I entered and could change. I then went about trimming it down to try and remove stuff that didn't seem necessary in FV or might be causing unnecessary waits. The same issues remained, so I added 'wait for animation' back in, and currently have this:

Code:
<setup action>
clear battle log
display action
immortal: targets true
wait for animation
</setup action>

<finish action>
immortal: targets false
wait for new line
clear battle log
action common event
</finish action>

...aaand the same issues remain. Actor attacks still have a weird pause, enemy attacks still play 'attack' and 'damage' simultaneously. As I say, I first used the full default sequence, so I don't think the second issue is being caused by anything I removed to get this.
1. A brief pause between "X attacks!" (the 'display action' command) and anything else visually happening.
2. Some more time taken up for the SV sprite to do its attack animation (swinging a sword or whatever)

lets take a step back first then. when you make a new project, put it in FV, and start battles with just the yanfly battle core on, you get the delay + the double sound effect, right?

i made one to compare MV default and battle core default. while i do get that first delay mentioned, thats a part of the action sequences. i just cut anything that dealt with motions alongside the initial cast animation just to see and its more or less the same speed the default engine goes
1727556845680.png

I could not experience the sound effect issue though. after removing all other plugins, do you still get the sound issue?
OK! Had some computer issues and irl stuff so most of October was a no-go but I am now finally back at it and have done some testing.

lets take a step back first then. when you make a new project, put it in FV, and start battles with just the yanfly battle core on, you get the delay + the double sound effect, right?

i made one to compare MV default and battle core default. while i do get that first delay mentioned, thats a part of the action sequences. i just cut anything that dealt with motions alongside the initial cast animation just to see and its more or less the same speed the default engine goes
View attachment 319011
I could not experience the sound effect issue though. after removing all other plugins, do you still get the sound issue?

Created a new project, slotted in just core engine & battle core:

- Delay still there in the test project; as noted, that's a known thing with action sequences. But it does look like the code you've screenshotted there is the same as what I posted in my previous post, and I'm still getting the full delay just like in battle core default?

- The enemy insta-damage thing does not happen in the test project! So I scanned through all the plugin settings and whoops, found the culprit: I'd set "enemy attack animation" to 0 in my main project, parrtly as one of my various attempts to mess with the settings to reduce delays, partly because it was making enemies play an additional animation and not the one I wanted. Quickly undid that and just set it to play an 'invisible' animation that lasts the right number of frames. One thing sorted at least!

- Enemy death-sounds playing twice is not happening in the test project and I still do not know why it is happening in the full game! I think what I will do is start re-adding in my other plugins one by one and see if any of them cause it.
OK! Had some computer issues and irl stuff so most of October was a no-go but I am now finally back at it and have done some testing.
no worries. stuff happens.

But it does look like the code you've screenshotted there is the same as what I posted in my previous post, and I'm still getting the full delay just like in battle core default?
in the previous post you showed an action sequence for setup and finish. unless you changed the battle engine code to what i has shown above or loaded it as a plugin after the battle engine, you'd be running the same default action sequence that includes all the waiting.
have you made that change?

Original thread: https://forums.rpgmakerweb.com/threads/attack-animation-timing-in-yep-battle-core.171555/