Hi there,
I am trying to do something a bit specific, and I am at a loss as to how to achieve it. Here is the idea:
I want a specific animation to be played on a loop while actors are in a specific state, and I want the animation to be different depending on which specific actor is in the given state.
For example, let's say that I want to give party-members an animated aura when they are in the "Empowered" state. But I want the aura to be a blue wave for Harold, and a red flame for Theresa.
The first steps were very easy, I have managed to loop animations based on states very easily thanks to Yanfly's Visual State Effects plugin, using the <State animation: x> notecard command. The animation plays continuously over the actor while the flow of battle continues, perfect.
But this does not allow me to give a different animations to different actors, so it's a partial solution to my problem.
Then, I found another way: using this plugin that allows parallel common events to run during battles (works like a charm), I made a common event that periodically checks for the "Empowered" state on Harold and, if Harold has this state, plays the "blue wave" animation. And it does the same for Theresa to give her the "red flame" aura. I then loop the aura using a wait command that matches the length of the animation, so that for as long as the characters are in the "Empowered" state, the animation will start over the very moment it ends.
To achieve this, I constructed my common event, that runs in parallel during combat, like this:
That works perfectly, except for one big problem: while the animation plays, everything else stops (unlike when using Yanfly's plugin), so I cannot have this animation loop in the background while the fight is happening.
I currently have no idea how to either:
- use Yanfly's plugin, but check for which actor is in the state and play a different animation based on that
- or how to update my common event so that the flow of battle does not stop while the animation is playing.
Any help is welcome.
Thank you!
I am trying to do something a bit specific, and I am at a loss as to how to achieve it. Here is the idea:
I want a specific animation to be played on a loop while actors are in a specific state, and I want the animation to be different depending on which specific actor is in the given state.
For example, let's say that I want to give party-members an animated aura when they are in the "Empowered" state. But I want the aura to be a blue wave for Harold, and a red flame for Theresa.
The first steps were very easy, I have managed to loop animations based on states very easily thanks to Yanfly's Visual State Effects plugin, using the <State animation: x> notecard command. The animation plays continuously over the actor while the flow of battle continues, perfect.
But this does not allow me to give a different animations to different actors, so it's a partial solution to my problem.
Then, I found another way: using this plugin that allows parallel common events to run during battles (works like a charm), I made a common event that periodically checks for the "Empowered" state on Harold and, if Harold has this state, plays the "blue wave" animation. And it does the same for Theresa to give her the "red flame" aura. I then loop the aura using a wait command that matches the length of the animation, so that for as long as the characters are in the "Empowered" state, the animation will start over the very moment it ends.
To achieve this, I constructed my common event, that runs in parallel during combat, like this:
Code:
If : Harold is affected by Empowered
$gameParty.members()[0].startAnimation(110, true, 0);
End
If : Theresa is affected by Empowered
$gameParty.members()[1].startAnimation(111, true, 0);
End
Wait : 200 frames
That works perfectly, except for one big problem: while the animation plays, everything else stops (unlike when using Yanfly's plugin), so I cannot have this animation loop in the background while the fight is happening.
I currently have no idea how to either:
- use Yanfly's plugin, but check for which actor is in the state and play a different animation based on that
- or how to update my common event so that the flow of battle does not stop while the animation is playing.
Any help is welcome.
Thank you!