Description
I have found many opened issues in godot engine about Camera2D jitters in pixel perfect games when enabling smoothing, i also have came across this issue 2 years ago and posted it on twitter saying that godot is not good for 2d pixel games!
ways to fix this issue:
1- enable snapping options in project settings rendering/2d/snap/snap_2d_transforms_to_pixel
later enables rendering/2d/snap/snap_2d_vertices_to_pixel
if the first option doesn't solve the issue.
2- set a small drag margin in Camera2D to avoid jitter, it happens only when the Camera2d is about to reach it's desired location, for example moving from Vector2(0, 0) to Vector2(1, 0) with smoothing enabled will result in a jitter because the camera's x position will be a float between 0 and 1 while having a small drag margin will make you avoid this issue.