I am making a platformer and when my player moves to a certain. point the pixels in the wall tiles floor tiles etc. start to jitter. How can I fix this or is this a bug?
Yo i think you have a the player+floor+wall on the same Z so they jitter
Absolute rubbish.
Can you share a screen snip of the movement events?
This almost looks like you’re using a very low base resolution but then using lerp or something else to try and move your camera over gradual (subpixel) spaces.
Can you show your camera events and your project settings page (specifically resolution, pixel rounding, and scaling).
Here’s the events I have https://www.reddit.com/user/Distinct_Weather_904/comments/1gfxagc/events/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
I see a few issues with your events:
- You’re using a non-integer zoom (3.5x) on one layer. You can’t make “half” pixels from pixels, so coordinates on your base layer are always going to have subpixel locations, which can cause issues such as shimmer/pixel squishing.
- You have different zooms on each layer, which can cause coordinates to go weird depending on what you’re basing your movement off of.
I’d try two things:
- Have the zoom on both layers match, and be integers (whole numbers).
- Ensure you have “round pixels” enabled in your project properties.
I fixed the zoom-in on the camera and the tile23 (The background) and it worked and it’s not jittering. Thank you for your help I really appreciate it!