Is there a better way to do custom animations than what I'm doing?

So I currently have so that each page of the events is another frame and each page automatically goes to the next frame so that I can get custom sized and shaped animations, but this is a monotonous process and I was wondering if there was a better way? It also lets me have animations that can have any number of frames. The animation itself is 36 frames long and features the player character being absorbed by shadows and then blinking and turning into a demon before fading away. I'm also using a sprite zoom script to make the sprite twice the size it originally was because it looked too small on the screen.


Picture of my event.


Animations.PNG


The sprite sheets.


$Selena_Death_Part_One-sheet.png$Selena_Death_Part_Two-sheet.png$Selena_Death_Part_Three-sheet.png
It depends on what exactly you want to do - there are several other ways to animate, for example by playing a database animation on an invisible event or by using show picture commands and so on - without details what should happen where and when we can't tell you the optimal solution.


That said, your event shows an error that might become critical: custom autonomouse movement sets a move route automatically, but you're adding a set move route command to the event as well - those move routes will overwrite each other because each event can only have a single move route at any time.


And why are you using the move route wait anyway? it looks like the regular wait is a better choice here.
Oh, Thanks! I was using move route wait out of habit because with the animations on my main map it makes other animations unable to move at the same time. The custom move route is blank and is left over from an attempt to do this a different way. What extra information would be helpful so I can add it to my original post? Will the custom route still cause problems if it's blank? I'm super new to doing anything outside of the default but I decided to tackle an actual big game project after like three practice runs.
yes, because an empty move route means "delete the existing move route", blocking the event from both following the set move route of the contents and a possible remote control fro  another event.


Describe what the animation should be and show us the pictures - at the moment we have no info on what you want to achieve, you only posted how you want to do whatever the result should be. And we can't tell you if there are better ways without knowing what the player should experience.
Okay, I edited my original post with more info and I'm going to change the move routes right now. If it's absolutely necessary I can see about getting a video of the animation in action.
The following solution is somewhat script-y, but it will allow you to play the death sequence nicely with an event.

Spoiler

selena-animation.gif


END RESULT
​




selena-animation-event.png


MOVE ROUTE PREVIEW
​




Copy each line into a 'Script' command within a Move Route, placing a 2 frame wait in between each line. Basically, each command is forcing the event to step through the animation cycle in a very controlled manner. Here is the path the script is following for each graphic :


selena-animation-process.png

Code:
#
# IMPORTANT: Change '$selena-a' to the file name of the first graphic for the animation.
#
self.set_graphic('$selena-a', 0); self.instance_variable_set(:@direction, 2); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 4); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 6); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 8); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

#
# IMPORTANT: Change '$selena-b' to the file name of the second graphic for the animation.
#
self.set_graphic('$selena-b', 0); self.instance_variable_set(:@direction, 2); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 4); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 6); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 8); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

#
# IMPORTANT: Change '$selena-c' to the file name of the third graphic for the animation.
#
self.set_graphic('$selena-c', 0); self.instance_variable_set(:@direction, 2); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 4); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 6); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);

self.instance_variable_set(:@original_pattern, 1);

self.instance_variable_set(:@original_pattern, 2);

self.instance_variable_set(:@direction, 8); self.instance_variable_set(:@original_pattern, 0); self.instance_variable_set(:@pattern, 0);
Oh wow! That's really cool but I'm really noob when it comes to scripting so I'm afraid it won't work for me because I have several custom animations. It's amazing that you go it all under one move route though! My problem isn't that the way I'm doing the animations doesn't work or is too complex it just takes up a lot of time and I'm looking for a way that might be faster. Thank you anyway, though.
How about making that animation sequence a real (database) animation and then play it on the event?


That would require you to redo all the animation parts from sprite format to animation frames, but if the other animations are similiar death animations on different actors, you can use that to trick everything into one:


Because the database animations are overlays and not replacing the actor sprite, you can simply make all parts that are the original actor transparent, only leaving the increasing black and the grin sequence. Then you can play that animation on different actors and they will always have their own sprite below it, making their death similiar but not requiring a new sprite for every actor.


It is still a bit tricky as you need to be carefull about positioning the animation parts in the database, and you need to time the moment you change the actor sprite to an invisible sprite just before the end of that sequence to prevent it from suddenly being back again.


EDIT: it also has the advantage that the database animations allow you to include sound- and screen-effects in addition to the overlay.
That sounds great but... How do I do that? That really is the best option though because I was going to need to redo the animations anyway when I stop using placer holder graphics and if I do that then I can change The sprites as much as I want and I won't have to redo everything every time. Is there a tutorial you could point me towards?
not really - or at least not one that I know of.


The event command is "show animation" under character on the second page of the event commands.


Using that, you can select any event or the player as the target, and any animation from the database to display.


I suggest testing that with the existing ones to see how it works - and after that comes the difficult part: making that animation that you want.


Because most of the skill animations won't fit in size and display as you'll see when testing.


Then go to database - animations to start working.


Make a new animation, load an animation picture that is basically a small target designator.


The animations in the database are pretty easy to understand if you look at the existing ones - the problem is placing your black pictures at the correct space of the demo screen so that it'll be correctly displayed over sprites - the default change target option only gives large battlers for the battlescreen, you'll need a sprite-sized placeholder there and then experiment to get the correct positions.
I'll give it a shot.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-better-way-to-do-custom-animations-than-what-im-doing.65885/