it's probably an issue with rounding
you are trying to move your object in increments of 0.5 but with pixels and your display size, you can't draw something halfway into a pixel.
so each frame it's prob jumping between rounding and not as you jump between 0.5 1 1.5 2
and it's making your object jitter back and forth.
From my experience, 0.5 is like the worst increment you can put something in that has a camera following. I'd do 0.4 or 0.6 and maybe floor the x value when drawing it.