Camera2d sprite jitter

Godot Version

4.5

Question

I noticed some pixels jittering when my character is standing still. It looks fine when the character moves left or right, but when the camera stops smoothing and stays still, it starts jittering.

this is what the idle sprite normally looks like

the circled parts are some spots where it’s jittering, about every other frame (the eyelid is part of the idle animation so that’s normal)

I’m pretty sure it’s an issue with the camera, because the animation plays just fine when not using a Camera2D node, but when the camera node is attached, it jitters. I’ve messed with the inspector settings, but nothing seems to work, is there a way to fix this?

Try enabling “rendering/2d/snap/snap_2d_transforms_to_pixel” in the project settings, ensure that your using a whole-number zoom/scale factor for your camera or sprite.

1 Like

Worked perfectly, thank you!