Animation help

Due to my lack of experience I have been trying my best to learn about the battle plugin by yanfly however I find myself a little stumped.



<target action>hide battle hud

opacity not focus: 0, 20

wait for opacity

tint screen: dark

motion chant: user

ani wait: 45

se: Wind10

opacity user: 0%, 5

move user: target, front, 5

wait for opacity

opacity user: 100%, 5

wait for opacity

action animation

motion spell: user

ani wait: 23

shake screen: 3, 9, 10

ani wait: 23

action effect

immortal: target, false

tint screen: normal

Wait 30

move user: home, 5

face user: forward

wait for animation

wait for movement

</target action>

<follow action>

opacity not focus: 100%, 60

wait for opacity

show battle hud

</follow action>
wait for animation

wait for movement

tint screen: normal

</target action>

<follow action>

opacity not focus: 100%, 60

wait for opacity

show battle hud

</follow action>

As you can see with this code I have made before I have him charging an attack, dashing foward and casting a beam attack that lasts about 23 frames, however I find that when I do so he plays the animation of him casting it (the battler holds his arm out) but then stands idle for the rest of the attack having the beam just coming awkwardly off right side of his body.

So I was wondering how do I get him to hold the spell animation WHILE the attack animtion is going?
Thank you so much for your time.
Moved to: Javascript/Plugin Support
I found a similar thread over here with a plugin solution posted by Astfgl66:
https://forums.rpgmakerweb.com/inde...ction-sequence-frame-selection-control.95753/
I found a similar thread over here with a plugin solution posted by Astfgl66:
https://forums.rpgmakerweb.com/inde...ction-sequence-frame-selection-control.95753/

Thank you so much for the reply however this plugin seems to lock a frame of animation insted of just looping the cast animation till the attack is done making my character look pretty static.
Oh, I see! If you want that motion to loop in all situations, you could put this line in its own .js file and import it like a plugin:
Code:
Sprite_Actor.MOTIONS.spell.loop = true;
Likewise for other motions if necessary: just add more lines where "spell" is replaced with the name of the motion. ^_^

If you want the motion to only loop in particular situations, you could try adding eval actions (requires Yanfly's Action Sequence Pack 1) before and after the animation to toggle the motion loop on/off:
Code:
...
eval: Sprite_Actor.MOTIONS.spell.loop = true;
motion spell: user
ani wait: 23
shake screen: 3, 9, 10
ani wait: 23
eval: Sprite_Actor.MOTIONS.spell.loop = false;
action effect
...

Original thread: https://forums.rpgmakerweb.com/threads/animation-help.105867/