Battle Animation (Yanfly Battle System)

Hello!

I was curious if someone might be able to help me out with something that is probably quite simple.

I am using Yanfly's battle engine and animated SV enemies. Whenever I attack (or am attacked), the attacker basically slides over rapidly to the target, attacks, and rapidly slides back.

What I would like to do is use one of the animations that I am not generally utilizing for my project and during the 'move to' portion of the attack, the attacker goes into that animation.

For example: Character is selected to attack. Character goes into "item" animation (as it is one that I am not utilizing otherwise) as the characters moves towards target. The character then plays the attack animation as normal. The Character then goes into the "flee" animation while moving back into party position.

The Melody I am using for my attacks looks like this:

<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else

perform start
end
zoom: 105%, 10
camera screen: target, front center, 10
camera focus: target, front center, 10
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>


I am sure it is as simple as probably putting the appropriate Melody in the right place, but I have never worked with this system before and any help is greatly appreciated! Thank you! 🙂
Hi Jesse, is it character battle poses you want to use as opposed to animations? If so...

motion item: user, to use the item pose
motion escape: user, to use the flee animation.

Try this link, you can run a preview in there and see if its correct.
Spoiler: Action Sequence
<setup action>
clear battle log
display action
immortal: targets, true
</setup action>

<whole action>

</whole action>

<target action>
if user.attackMotion() !== 'missile'
motion item: user
move user: targets, front, 20
wait for movement
wait for animation
else
perform start
end
zoom: 105%, 10
camera screen: target, front center, 10
camera focus: target, front center, 10
wait for movement
wait for camera
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect: target
wait: 10
motion escape: user
move user: home

</target action>

<follow action>

</follow action>

<finish action>
immortal: targets, false
wait for new line
clear battle log
perform finish
wait for movement
wait for effect
action common event
</finish action>​
http://actionsequence.cf/share.html?sequence=-KwMVnebylXDxpo50Yzy
Heya Padr81! I do mean the Motions, not Animations, sorry for the jargon mixup!

The Melody you shared does not really do it. The character moves (slides) to the enemy and plays the Item motion instead of attack. Ideally what should happen is that the Item motion plays during the movement portion of the attack and the flee motion play during the movement back to the starting point, if that makes sense
Right before move user do
motion item: user
Then the move commands
At the end of your sequence before </target action> use
motion escape: user
move user: home, 20
wait for movement
motion walk: user
face user: target
wait: 5
</target action>

Sorry Jesse I would type the whole thing out but I'm on my phone.
Thanks for the help guys, I think I got something worked out from this 🙂

Original thread: https://forums.rpgmakerweb.com/threads/battle-animation-yanfly-battle-system.85668/