In my game, I have a flag which I have flapping around with an animation. Although I haven’t changed the x values of the sprite during the animation, it jitters from side to side.
Your gameobject’s actual position is not changing so it could the animation itself
As I showed in the screenshots, each keyframe is at the same position.
I was able to fix it by making the width of my sprites in the animation the same.
Alternatively, you can set the sprite pivot to the left (or bottom-left) part of your sprites in the Sprite Editor. This way, even if the sprites have different size, they will be aligned by that pivot.
Thank You, this is probably a solution that would work in more cases.