How to solve pixel perfect jittering?

Hi,
If you’ve made a pixel art game in unity, you’ve got the jittering issue.
Anyone able to solve this problem?
How to make pixel perfect camera smooth?

if(isGrounded)
        {
            if (x == 0)
            {
                pixelPerfectCamera.enabled = false;
                ChangeAnimationState(IDLE);
            }
            else
            {
                pixelPerfectCamera.enabled = true;
                ChangeAnimationState(RUN);
            }
        }
        else
        {
            pixelPerfectCamera.enabled = false;
            ChangeAnimationState(JUMP);
        }

I tried to solve the problem like this. But it is doesn’t feel right.
Should I use a different game engine for pixel art game?

Could you share a gif or (even better) a video? Multiple people has reported jittering on pixel perfect cameras lately.

Another jittering post I answered yesterday: Is Pixel Perfect movement compatible with Unity physics?

Do you understand what I mean?
I want it to be like celeste :sweat_smile:

It works fine for me with a basic setup.

Make sure of these:

  • your sprites are 8x8 or its multiples like 16x8 etc.(since your assets pixels per unit is set to 8
  • your snap settings in the scene is correct
  • your objects in the scene are snapped after setting the snap settings
  • game view zoom is set to 1x(this may not have an effect, I am not sure, but do it anyways)
  • game resolution is a multiple of the reference resolution on pixel perfect camera
  • your sprites are uncompressed and with point filter(no filter)

you can try settings your pixel perfect camera pixels per unit to a higher multiple of 8 (in your case). i use 8x8 sprites in my game as well and found 24 works nice, but you can try 16, 32, etc. as you see fit

Start with the basics of the movement. How are you moving this? If you’re adding forces to a Rigidbody2D then you should always use Interpolation setting on the Rigidbody2D so it updates per-frame instead of every FixedUpdate.

to be like celeste will be a grand endeavor, unity is a 3d engine and the 2d features are just a bonus, its going to be extremely hard to be absolutely pixel perfect