MZ Jittery door animation glitch.

Hello! I'm back here with another question.

I'm currently implementing animations into my RPGMaker MZ game. However, I've just encountered a glitch with one of my large door animations.

Sometimes, the animation plays correctly (shown below.)

labdoor_correctanimation_gif.gif


But other times, the top half of the sprite jitters while the animation is playing (shown below. Might be worth zooming in to see it.)

labdoor_glitchanimation_gif.gif


To get a sense of how it works, I've attached the code for my event to this thread. I've also included a screenshot of my plugin layout. For this event, I used a combination of the Rosedale Collision Altering Plugin (for hitboxes) and TAA's Event Offset Plugin (to position this animated door on my map.)

Thanks for reading, and I look forward to hearing your response!
This looks like it could be a rounding problem. If you have objects on fractional pixel coordinates, they can sometimes jitter between two nearby integer coordinates.
And from a cursory glance at that event offset plugin, it doesn't seem to be doing any rounding, since it only modifies world coordinates, not screen ones.

Assuming you're using 48x48 tiles, try replacing 4.39 with 4.395833 .
@madocactus
Considering you have to squint and turn your head to see it, I wouldn't sweat it if you can't fix it.
This looks like it could be a rounding problem. If you have objects on fractional pixel coordinates, they can sometimes jitter between two nearby integer coordinates.
And from a cursory glance at that event offset plugin, it doesn't seem to be doing any rounding, since it only modifies world coordinates, not screen ones.

Assuming you're using 48x48 tiles, try replacing 4.39 with 4.395833 .
I tried doing that this morning and the issue still persisted. I thought it worked at first but then the image started glitching in the same way again.

@madocactus
Considering you have to squint and turn your head to see it, I wouldn't sweat it if you can't fix it.
That's true for the .gif I recorded (which is pretty small), but it's way more noticeable in the actual game.
Update with this issue. I found the likely root of it - but I'm not sure where to go from here - because it's an important plugin for my project.

Basically, I use this plugin called MultiTweaks.js. It allows me to zoom into my maps at 200%. However, when I reset the zoom size to 100%, the door animation above works normally - consistently.

I showed this issue to a friend of mine who codes, and they said it could be a pixel zoom filtering/resolution issue. If it is, how would I go about fixing it?
Third update - I found a workaround that works consistently!

Allow me to explain, so that anyone else who has this issue can fix it.

The visual glitch mainly happened around the upper panels in my door animation. So, I separated the door animations from the upper panel. (Shown below.)

Screenshot 2025-05-14 at 12.31.52.png


Screenshot 2025-05-14 at 12.32.04.png



Then, I made the upper panel a separate event - one that would be displayed above my door animation. I used TAA_EventOffset to position it properly, and the Rosedale Collision Altering Plugin to set its hitbox to 1*1 - so that it wouldn't interfere with the door event.

Screenshot 2025-05-14 at 12.33.21.png


Screenshot 2025-05-14 at 12.33.31.png


And now, it works as intended. I don't know if this method will suffice for all use cases (like giant enemies with lots of animation), but it does for this one.

Original thread: https://forums.rpgmakerweb.com/threads/jittery-door-animation-glitch.177468/