Using tween to move by rounded pixel increments

Godot Version

4.3

Question

So, I have an issue caused by a camera fixed on player character causing jitter in sprites while moving. I am fairly sure this is caused because the camera is moving in non-rounded increments. Currently I use tweens for the movement between grid cells.

I am trying to figure out if there is a way to move a character by round() increments using a tween.
Since either the other sprites or the character jitter depending on how I set up my scene.

I explain the problem that prompted me to search this solution in another topic called “Camera jitter while moving player in grid based movement with tween” through that post I believe I understand why it is happening, but now I search a more specific solution.

I want to be able to move the player character, or at least the sprite by whole pixels so as to hopefull eliminate sprite jittering.

You can try one of these options:

1 Like

Hey, such a simple fix, thank you. I had read so many posts in similar topics that had so many different suggestions. However, that was by far the simplest, and it worked at least for now!