I'm really close to making a custom enemy death sequence work, but a single frame keeps getting in the way.

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.


1685938465794.png


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).

1685938589555.png


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!
Copy the boss' sprite and paste it into the cels of the actual animation, with it disappearing at the precise point you want.

On the line before the animation, Transform the boss to another enemy with a blank sprite. (you can probably use a script call to make his sprite opacity 0%, alternately)
Bosses tend to be quite large; much more than the 192x192 cell size would allow. This would mean that I'd have to stitch together the pieces of the boss (as well as every boss in the project), have each of them occupy slots in the Animations, as well as replicate the boss itself fading to white with copies of their sprites in additional cells.

Is there no better way to achieve what I'm seeking with the default tools that the engine gives?
Especially as it's already so incredibly close to working this way, being only off by a single troublesome frame.

I'm more than willing to make this work, of course, and I'll happily try it if it is indeed the best option!
You could try something like having your animation conclude with one or more screen flashes, then make the event command immediately after that have a screen tint to mimic the flash, remove the battler, un-tint.

I can't think of a way to perform other commands in the middle of an animation without requesting a plugin for it.

Original thread: https://forums.rpgmakerweb.com/threads/im-really-close-to-making-a-custom-enemy-death-sequence-work-but-a-single-frame-keeps-getting-in-the-way.158070/