12-Sprite Death Animation

I imagine this is relatively simple, but for the life of me, I cannot find an easy answer. So, I recently had a custom animations made on order. I had figured out I would just copy-paste and modify a door event's move route and be done with it, but I can't find out how to make an event play specific stepping animations without actually moving, and having to create 12 event pages just to play each animation in full does not seem optimal. Any ideas?
you didn't find a way because there is none by default - the doors are 4-frame-animations, not 12-frame.

it can be done, but you'll have to use script functions to set the frame individually.
I don't remember which function it is, but it should be listed in the script equivalent of event commands topic.
you didn't find a way because there is none by default - the doors are 4-frame-animations, not 12-frame.

it can be done, but you'll have to use script functions to set the frame individually.
I don't remember which function it is, but it should be listed in the script equivalent of event commands topic.
Ooph, then according to what I've found ($game_map.events[id].set_graphic("character_name", character_index)) that means I cannot use a common event for it. Well... Sh!t. Do you know of any scripts that could help with that? Having to set the map and event id 12 times from copy-paste for each time I want to call this seems pretty harsh.
that means I cannot use a common event for it.
why not?
There are some limitations to common events, but there are also ways around them.
please give a full example on what you want and we might be able to tel you how to do it.
why not?
There are some limitations to common events, but there are also ways around them.
please give a full example on what you want and we might be able to tel you how to do it.
Well, since the script call for specific sprites requires both listing the map ID and the event ID on said map, then it's impossible to create a common event that can just be called for the animations to play. I'll have to set the IDs manually every time.

See the attached screenshot as an example. The 2 bottom-left character sheets are 2 of the death animations I had made, for male/female respectively. The idea was that when I wanted a character to die in that manner, I would just flash them brown-red, self-switch into one of these, then call one of these respective animations via common event: Move Route to have them blow-up, then self-switching to the final sprite of the animation afterwards for permanent corpse.

I have others for decapitations, slashing, etc.
I have a few solutions:
  • Use your sprite animation as an actual animation rather than a character. If you have trouble aligning it with the character on the map, edit the image file directly instead of doing it within the database
  • Divide the 12 frames into 3 separate characters with 4 frames each (one frame for each direction) and switch the graphic during the Set Move Route sequence
I have a few solutions:
  • Use your sprite animation as an actual animation rather than a character. If you have trouble aligning it with the character on the map, edit the image file directly instead of doing it within the database
  • Divide the 12 frames into 3 separate characters with 4 frames each (one frame for each direction) and switch the graphic during the Set Move Route sequence
I'll probably go with the first option.
I'll have to set the IDs manually every time.
yes and no
it depends on the context, but because the IDs are available as javascript they can directly be set by javascript variables. And that means you can (under the correct circumstances) replaces them with code for the current map ID or whatever.

There are limits to that (which is why I asked for the context), but some people have made very complex systems exactly because in script version you can replace the constant ID with javascript functions.
But this only works if you have a way to identify the correct event by mathematics or by logic function or tag, it doesn't work on randomly selected events.

Original thread: https://forums.rpgmakerweb.com/threads/12-sprite-death-animation.130930/