Hi friends!
I read this tutorial (Yanfly - Organic Decostruction)
http://yanfly.moe/2016/04/23/tips-tricks-organic-deconstruction-league-of-legends-rpg-maker-mv/#more-2705
I've a little problem. In the last block "Custom Conclude Effect" there is an animation "target.startAnimation(101);". Is there a way to wait for animation completed, and than execute the last block code? I don't like that the animation is executed and before it is completed i see on screen the damage (and eventually the target death).
Thanks
I read this tutorial (Yanfly - Organic Decostruction)
http://yanfly.moe/2016/04/23/tips-tricks-organic-deconstruction-league-of-legends-rpg-maker-mv/#more-2705
I've a little problem. In the last block "Custom Conclude Effect" there is an animation "target.startAnimation(101);". Is there a way to wait for animation completed, and than execute the last block code? I don't like that the animation is executed and before it is completed i see on screen the damage (and eventually the target death).
Thanks
Code:
<Custom Conclude Effect>
// After effects have taken place, check for any stored damage.
if (target._deconstructDamage) {
// Check if the target is alive.
if (target.isAlive()) {
[COLOR=#FF0000]// Play animation 101 on target.[/COLOR]
[COLOR=#FF0000]target.startAnimation(101);[/COLOR]
// Target takes damage equal to the stored damage.
target.gainHp(-target._deconstructDamage);
// Start the damage popup.
target.startDamagePopup();
// Clear the damage result.
target.clearResult();
// Check if the target is dead.
if (target.isDead()) {
// If the target is dead, make it collapse.
target.performCollapse();
}
}
// Clear the stored damage.
target._deconstructDamage = undefined;
}
</Custom Conclude Effect>