Animation in AnimatedSprite2D jitters side to side

Godot Version

4.2.1

Question

I have an animation imported into a animatedsprite2d, and have autoplay on. In the editor, running through the animations looks fine. On runtime however, the sprite shifts/jitters.
The only code I have is to center the sprite:

How can I prevent this?
Playing animation in spriteframes editor
no jitter

On runtime:
jitter

Not sure if related, but what are your settings for scaling? This may help, specifically sections for 2D pixel games: Multiple resolutions — Godot Engine (stable) documentation in English

Yup! That was the issue. Scale of the sprite was set to 3.5
On 3.6 it doenst jitter at all

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.