2d sprites shivering
Hi there. Making 2d scroller. Main idea is to create endless moving illusion. I am using 3 layers for creating parallax effects, moving with 1x, 2x and 4x speed relative to fixed orthographical camera. And there is some problem. Sprites are looking like shivering during their motion. At some moments they are like moving 1 pixel backwards for a short moment. Also, they move not with fixed speed. Things i've done to solve this: 1) using pixel-perfect camera 2) loading textures with 1 ppu 3) setting up view resolution equal to texture resolution 4) Making moving with a FixedUpdate() 5) Making all the moving called from 1 singleton to save moving order(layer 1, then layer 2, then layer3) 6) Saving all movement data at my own dictionary(GameObject, MyVector3). MyVector3 has getter: returning rounded xyz, to interrupt floating point. 7) Additionally, i am checking each FixedUpdate() if rounded coordinates are different from last frame. Only this way i set transform.position of sprite to be equal to my dictionary data. Made this to interupt from calling unnecessary transforms. 8) Using .Point() texture filter(same result as trilinear, if it is necessary to know)
I still have shivering and not smooth movement. Help me please with this!
Your answer
Follow this Question
Related Questions
Unity 2D bones un-binding after closing 1 Answer
How to rotate sword while still looking at mouse? 1 Answer
Why does part of my sprite disappear? 1 Answer
Why is my sprite moving during animation? 0 Answers
2 running animations in a sprite sheet 0 Answers