- Home /
Jittery Sprite movements
Hey Unity devs!
I've been bashing my face against a wall for the last couple of days. Due to this, I think I may have a concussion and thus may not be trying to build these sprites and cameras the right way. Here's the issue:
In the video, you can see that sprites are super jittery. It makes movement feel as though the game is incredible laggy. I've tried all sorts of "pixel perfect" cameras, lerping techniques, and standard camera techniques, yet I just can't get things to move smoothly. What the heck can I do?
Here is one asset I have tried using quite extensively, because it appears to be what I need, but I just can't get it to work for my intended use case. https://github.com/RyanNielson/PixelCamera2D
Could anyone offer any help?
Thanks in advance, James
Answer by Dudicus · Jan 31, 2018 at 01:35 AM
I personally don't think it's the camera that's wrong. What are you using for the movement code of your character? Using Transform.Translate may sometimes do this. If you are using that, try doing rb.addForce with rb being your Rigidbody variable. But honestly, it seems you know this already. If that's not your case you can give me a link to the script for the player movement.
It's definitely not the movement method or input style in relation to the character that is moving around. Also- I am not (nor will I be) using Unity's physics systems for movement. I have made and am using my own physics based on raycasts and other calculations to manage all types of things, collisions included.
If you ignore the character and just look at the platforms and walls, they are 'jumping pixels' it seems, causing them to not move in a way that appears smooth. I have not done extensive work with Sprites in the past, and thus have never encountered this issue. For the most part, I have worked on games in 3D space, or using 3D assets.
Your answer
![](https://koobas.hobune.stream/wayback/20220612151632im_/https://answers.unity.com/themes/thub/images/avi.jpg)