I'll try to explain this as quickly and clearly as possible while leaving in all of the necessary details.
Today I've made an Animation in the engine specifically for use as a sort of custom boss defeat sequence. The animation itself looks acceptable to me, but I ran into problems trying to make it work.
The way I thought I would handle it is to have it all be handled through Battle Events. On Turn 0 I'd apply a state that would make it so that the boss enemy couldn't be K.O.'d until I used a different Battle Event to take away the state.
And that once the boss' HP was brought down to 0, it'd activate the Battle Event that is its defeat sequence.
(To give a brief explanation of it: the boss would have many explosions surround them, the screen would fade to white and then the screen would fade back to normal, with the boss gone, with the use of Hide Target.)
My initial assumption was that I could use the Wait command until a certain point of my Animation (in this case, the very end as it's 150 frames long).
Unfortunately that did not go as desired, as it waited for the animation to play out and then added 150 frames on top of all that. (This wouldn't have been a problem if the Hide Target flash could persist after an animation, but that doesn't seem to be the case.) This would result in the boss appearing suddenly after the animation finishes, and staying there until vanishing again when its state is removed.
So I tried the logical option and simply removed the Wait command, but that was undesirable as well, as that would make it so that my enemies lost their immortality immediately and got K.O.'d prematurely as soon as the animation began. This ALSO had the issue of immediately causing the battle to be considered won during this broken animation.
Since the Wait command has a minimum value of 1, it would lead into two possible problems of either the State being removed far too early, or the boss' sprite flashing for exactly 1 frame after its dramatic defeat.
What can I do to make this work as gracefully as I'm looking for? To make this sequence play out as intended, without that extra frame of the boss appearing.
Thank you!
Today I've made an Animation in the engine specifically for use as a sort of custom boss defeat sequence. The animation itself looks acceptable to me, but I ran into problems trying to make it work.
The way I thought I would handle it is to have it all be handled through Battle Events. On Turn 0 I'd apply a state that would make it so that the boss enemy couldn't be K.O.'d until I used a different Battle Event to take away the state.
And that once the boss' HP was brought down to 0, it'd activate the Battle Event that is its defeat sequence.
(To give a brief explanation of it: the boss would have many explosions surround them, the screen would fade to white and then the screen would fade back to normal, with the boss gone, with the use of Hide Target.)
My initial assumption was that I could use the Wait command until a certain point of my Animation (in this case, the very end as it's 150 frames long).
Unfortunately that did not go as desired, as it waited for the animation to play out and then added 150 frames on top of all that. (This wouldn't have been a problem if the Hide Target flash could persist after an animation, but that doesn't seem to be the case.) This would result in the boss appearing suddenly after the animation finishes, and staying there until vanishing again when its state is removed.
So I tried the logical option and simply removed the Wait command, but that was undesirable as well, as that would make it so that my enemies lost their immortality immediately and got K.O.'d prematurely as soon as the animation began. This ALSO had the issue of immediately causing the battle to be considered won during this broken animation.
Since the Wait command has a minimum value of 1, it would lead into two possible problems of either the State being removed far too early, or the boss' sprite flashing for exactly 1 frame after its dramatic defeat.
What can I do to make this work as gracefully as I'm looking for? To make this sequence play out as intended, without that extra frame of the boss appearing.
Thank you!