MV YanFly Action Sequence => Basic Attaque

Hi all!!

I have a little problem when my enemies attack, I am using action_sequence to make heroes and enemies move before they strike.

When I have several heroes lined up and an enemy charges to attack one of my heroes, there is a problem with the "layer" the enemy goes under my heroes which make wrong the animation a little bit.

I have this problem when I have two heros or more than two heroes on my line and for example the enemy attacks the one at the bottom (there will be interference with the hero just above)

The action sequence i am using :

Code:
<setup action>



display action



if user.attackMotion() !== 'missile'



camera focus: target

zoom: 110%, 20



camera offset: right, 50





else



camera focus: user

zoom: 150%, 20

wait: 20

camera focus: target

zoom: 150%, 20

camera offset: right, 50



end



immortal: targets, true

</setup action>



<target action>


if user.isStateAffected(8)


else



if user.attackMotion() !== 'missile'

move user: targets, front, 20

else

perform start

end





wait for movement

motion attack: user

wait: 10

attack animation: target

wait for animation



action effect

wait for animation

wait for movement

wait: 5



</target action>


I think I could fix this if I could get the enemies to stop a little before
to strike. If he hits a little further there will be more of this layer problem?


Sorry i have a bad english i use a traductor but i hope u have understand ^^
The plugin Parameter Side Sprite Priority in YEP_BattleEngineCore is for changing this. The default is actors on top (1) but setting it to Default (0) should correct this.
The plugin Parameter Side Sprite Priority in YEP_BattleEngineCore is for changing this. The default is actors on top (1) but setting it to Default (0) should correct this.

Thank's it work perfectly! ^^

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequence-basic-attaque.129507/