Edit. No solution seems to be available. I’ve created a feedback thread on General about it instead and will stick to a linear camera for my project.
Original post:
I had an issue last week with jittering/wobbling sprite objects that made them look separate to the scrolling artwork, especially evident when the camera was slowing down to a stop (smooth camera extension on platformer character, or just a regular follow on X with lerp). I solved this by enabling round pixels in the game’s properties. But the background and foreground parallax layers still wobble and take a moment to stop moving when the camera has stopped. The wobble from left to right for a bit, as if they can’t decide what pixels to occupy. Does anyone know why they continue to wobble when the base layer, and any objects on it, are fine since I enabled round pixels?
A typical event for my parallax layers is below. It works great with round pixels turned off, but that means my base layer objects jitter, so that is not a solution. The only other way I can get my game to behave is to turn round pixels off and have a linear speed camera: no smooth acceleration or deacceleration. That would be a last resort. My game is 1920 x 1080. Thank you.
Try seeing if rounding the result of CameraX position can fix it, it might be the decimal result generated from the small number that is making imperfect pixels, like, if a square is 1 pixel wide, and it’s size is scaled by 1.5, it needs to have 1.5 pixels, but what position can it ocuppy so it can look half a pixel? I don’t know if that’s confusing or not but I hope you understand what I mean
Thanks, but I have tried that. Rounding the base layer camera creates odd, linear movement toward the end of the deceleration. So I think that is my fourth option I forgot to state: (4) Have round pixels on all layers, but have odd looking deceleration. I’ll be sticking with option three if it really is impossible to fix this. Thanks for your input though.
Edit: I got confused with another post I wrote about this, in the general section. I thought your reply was to that. Sorry. My comment about ‘option 4’ probably seemed random! I go into all the things I’ve tried on this post, if interested: