Pixels on the Edge of Tiles

How do I fix these lines at the top pf these tiles?
The tiles are 16x16, and the artefacts are only 1 screen-pixel thick. When turning off the pixel snap, these lines appear as flashes in Game mode.
Fixes I’ve tried:

  • The afforementioned pixel snap.
  • Different pivots when slicing the tile map.
  • disabling compression
  • disabling anti ailiasing
  • messing with the camera

I don’t think its a problem with the sprites as they are fine in the scene view and the previews in the editor.
Any suggestions are much appreciated. :slight_smile:

It is probably because your grid and/or object is not at 0,0,0

You can keep the grid and tilemap where it is and fix the root of the problem by properly using the grid snapping for pixel perfect projects. (your grid snapping is disabled) 9160826--1274342--upload_2023-7-20_23-41-8.png

After enabling with correct values(check the pixel perfect documentation) it also make sure to select everything in scene and hit align selected

Edit: also make sure your resolution is not free aspect in game view. Set it to something that is an integer multiple of your base resolution.

create sprite atlas with padding = 2

also make sure your resolution is not free aspect in game view. Set it to something that is an integer multiple of your base resolution.

Thanks for the help, this worked.

I’ll look into this, I don’t really know about sprite atlases. Thanks.