Most efficient way to play a large set of sprites and avoid "Blinking"?

Hey guys, I am having a lot of trouble figuring this out, I'm hoping someone can give me an alternative solution, or different approach for my needs.


So here's the gist, I have a special death animation I want to play in the overworld.
The animation is a lot longer than the typical "3x4" sprite sheet sets, and I am using the method of just having 4 frames (with 1 frame matching the entire row) per sprite sheet, and then just switching to other spritesheet sets to "continue" my animation.

The thing is, when I try to use the Set Movement Route, and change Actor sprites to "continue" my death animation, there's these awkward spots when the Actor Sprite changes, and the character blinks away for just a second. It looks awful!

Does anyone know a way around this, and to avoid this problem?
Hey guys, I am having a lot of trouble figuring this out, I'm hoping someone can give me an alternative solution, or different approach for my needs.


So here's the gist, I have a special death animation I want to play in the overworld.
The animation is a lot longer than the typical "3x4" sprite sheet sets, and I am using the method of just having 4 frames (with 1 frame matching the entire row) per sprite sheet, and then just switching to other spritesheet sets to "continue" my animation.

The thing is, when I try to use the Set Movement Route, and change Actor sprites to "continue" my death animation, there's these awkward spots when the Actor Sprite changes, and the character blinks away for just a second. It looks awful!

Does anyone know a way around this, and to avoid this problem?


This has been the best plugin for this I've used. It can take a bit of getting used to, but I've used HUGE sprites, I'm talking 1000x2000 pixel sprites, and this plugin makes them show smooth as butter with no blinking.
there's these awkward spots when the Actor Sprite changes, and the character blinks away for just a second.
That is the load delay - any picture needs to be completely loaded before it can be displayed.

as such this is the one situation in which a preload function is usefull as in loading all sprites a second before they are needed.

This can be done with a preload plugin or by using the other sprites in a hidden part of the map or a few other methods.
That is the load delay - any picture needs to be completely loaded before it can be displayed.

as such this is the one situation in which a preload function is usefull as in loading all sprites a second before they are needed.

This can be done with a preload plugin or by using the other sprites in a hidden part of the map or a few other methods.
I personally ran into this issue even with preload managers which was awful. I ended up using galv's plugin for that reason and it was the only thing that remedied the issue ;_;
Hopefully that's not the issue though for Poptart!
I personally ran into this issue even with preload managers which was awful.
that is why I specified the sprites need to be loaded a second before their use - which is impossible to do without manual preload commands.

A lot of preloader plugins pretend to be automatic without manual commands, and those are failures by definition.
Preloaders are automatically memory leaks (which is a bug in themselves) if not carefully managed, and no computer can read your mind to learn what is supposed to be used when. Because RAM is limited you need to be able to manually (with script command) tell the computer when to load a sprite - if a preloader does not have that script command, then it is useless.
that is why I specified the sprites need to be loaded a second before their use - which is impossible to do without manual preload commands.

A lot of preloader plugins pretend to be automatic without manual commands, and those are failures by definition.
Preloaders are automatically memory leaks (which is a bug in themselves) if not carefully managed, and no computer can read your mind to learn what is supposed to be used when. Because RAM is limited you need to be able to manually (with script command) tell the computer when to load a sprite - if a preloader does not have that script command, then it is useless.
For sure, they ended up being a bit of a headache for a dummy like me lol. So this was a mch faster solution XD



OKAY @PoptartPresident
If you find that a preload manager isn't working for you, I put together this video for you as well as an accompanying infographic for use with the plugin I posted.



Actor1.png



I'm not here to say this is the BEST or RIGHT solution. But it was the one that worked best for my project and it opened up a TON of freedom. Since implementing the plugin I really was able to create much more interesting and fluid sprite animations.
It can also be used to string together multiple sprite sheets with no blinking by simply changing the name of the sprite sheet in the script call to the new sheet.
That is the load delay - any picture needs to be completely loaded before it can be displayed.

as such this is the one situation in which a preload function is usefull as in loading all sprites a second before they are needed.

This can be done with a preload plugin or by using the other sprites in a hidden part of the map or a few other methods.

Would you happen to know any good preload plugins?
I was looking around after reading your conversation, but it seems other users say they cause problems...so that might not be a good possibility.


I like your other solution idea, though that might be a bit awkward to use sometimes for eventing.

Is there a way to perhaps command the movement route as: "turn to frame X in the spritesheet"?
If I can do that, then I don't need to format so many Actor Image sprite sheets, and can just use the frames as a sequence in my animations
Would you happen to know any good preload plugins?
No. I know how to use preloaders correctly because I'm a computer professional, but I haven't had the time to work with them in the last decade or so, so I can't point you to one.

Is there a way to perhaps command the movement route as: "turn to frame X in the spritesheet"?
yes there is - it is a script command and I've seen several forum posts where it was used, but I don't have links.

There is a slight problem with using that command, but nothing problematic for your case: Pointing directly to a frame to be used also makes that frame the default for stepping, which means that the sprite may suddenly look wrong if you use it for moving and standing after that change.
But that is only for cases of regular sprites and don't apply when you override the entire animation sequence.
I like your other solution idea, though that might be a bit awkward to use sometimes for eventing.

Is there a way to perhaps command the movement route as: "turn to frame X in the spritesheet"?
If I can do that, then I don't need to format so many Actor Image sprite sheets, and can just use the frames as a sequence in my animations
At first it can be a bit awkward, but it does exactly what you just asked. Basically you just gotta get used to knowing how to use the section, frame, and direction functions. Those 3 things combine to select the specific frame. So basically the script call I pointed out in the video, IS how you tell it to "turn to frame x"

Originally it seemed like a lot of work to simply select what frame I wanted. But as I got used to it I realized it was WAY better than anything else I had tried up to that point. The animations in my game are way smoother and I haven't had a single blinking sprite since using this.

Again this is just a suggestion! Feel free to check out other threads and stuff to see if there's a better one for you.

I spent like 3 days scouring everything I could find before I landed on this plugin.
Just to clarify a few things:
  • Is this death animation something that happens frequently?
  • Is it something that happens at a predetermined time, such as part of a cutscene? Or is it something that happens at times that you (as the dev) cannot necessarily predict, such as the game has an ABS and the player could die at any time?
  • Do you have all the relevant character sheets in the same png file, or are you using multiple single character (4x3 frame) files?
Just to clarify a few things:
  • Is this death animation something that happens frequently?
  • Is it something that happens at a predetermined time, such as part of a cutscene? Or is it something that happens at times that you (as the dev) cannot necessarily predict, such as the game has an ABS and the player could die at any time?
  • Do you have all the relevant character sheets in the same png file, or are you using multiple single character (4x3 frame) files?

Oh sure! Let me clarify my needs:

-There are many different types of death animations. It depends on the obstacle that the player fails or touches on the overworld.
-These are things that would only happen during cutscenes, or intervals in like an autorun event.
- I am using all the relevant character sheets in the same png file. I'll show you what I mean actually with a non-death animation:

ex.png


See here, the name of the file doesn't have any !$ symbols, and the way I have it setup in my death animation events is just to go from like...

Code:
Set Movement Route: Player

Change Actor Image (0), turn up, left, right, down.

Change Actor Image (1), turn up, left, right, down.

Change Actor Image (2)....

etc.

This is how I am approaching animations with longer frames. But as you probably might notice, there is a quick Blink between each Change Actor Image command.


As you can see, this is why I was kind of looking to see what the most "efficient" way to do these longer-animation setups to avoid the blinking issue.


At first it can be a bit awkward, but it does exactly what you just asked. Basically you just gotta get used to knowing how to use the section, frame, and direction functions. Those 3 things combine to select the specific frame. So basically the script call I pointed out in the video, IS how you tell it to "turn to frame x"

Originally it seemed like a lot of work to simply select what frame I wanted. But as I got used to it I realized it was WAY better than anything else I had tried up to that point. The animations in my game are way smoother and I haven't had a single blinking sprite since using this.

Again this is just a suggestion! Feel free to check out other threads and stuff to see if there's a better one for you.

I spent like 3 days scouring everything I could find before I landed on this plugin.

I will give this a shot as a last resort! I usually try to avoid plugins if I can, since there is probably another solution for a simple problem. But thank you!
I will give this a shot as a last resort! I usually try to avoid plugins if I can, since there is probably another solution for a simple problem. But thank you!
Totally understandable! If you do end up taking this route and end up needing any help feel free to reach out! I hope you find a better solution though!
Is there a way to perhaps command the movement route as: "turn to frame X in the spritesheet"?
Check out this tutorial~

RMMV implements an image cache to keep recently-used images in memory, reducing load delays. When the cache goes over its max limit, it forgets the oldest images until it's back under that limit. By default that maximum is 10 MPix (40 MB in RAM), which is generally unhelpful for games using many large images. The Community_Basic plugin, included by default in new projects, lets you increase that size limit if necessary. Doing so should help to reduce repeated load delays of any given resource in a single play session.

As Andar mentioned, you can often request a resource ahead of time using event commands, e.g. make a dummy event with a non-repeating move route like: Transparent ON, Change Image. Or Show Picture at 0% opacity. Etc.

(RMMZ removes the cache size limit and instead empties the cache at various points.)

Original thread: https://forums.rpgmakerweb.com/threads/most-efficient-way-to-play-a-large-set-of-sprites-and-avoid-blinking.161941/