Strange lines appear in tilemap

Diotima
Mon, 31 Aug 2015 17:52:25 +0000
Asset Creation

Dear Epic/Community,

While building my sidescroller in Paper2D, I’ve encountered a really annoying problem with my tilemap. As you can see in the first image, sometimes a line appears on the edge of 2 tiles in my tilemap. The exact location of the line switches around, but it always appear on the vertical ‘grid-line’ between two tiles. At first I only noticed it while previewing my game, but after (literally) closer inspection in the editor (read: zooming in) it also happens there.

At first I thought it had something to do with the light-blue background, but after removing the background, the problem remained.

My next guess was that somehow the tiles had become bigger than the grid, but both are set at 32px by 32px (I’ve painted the tiles on a 32 by 32 grid in Photoshop, so that shouldn’t be a problem).

I’ve tried applying the “Paper2D texture settings” to the source-image before and after creating the tileset and tilemap, but that didn’t help either.

I also tried reducing the size of the collision-tile to prevent possible overlap, but even after using 28 by 28 collision-boxes on the 32 by 32 tiles, it still occurs.

My last guess was to use a source-image with a spacing in between the different tiles, so I’ve tried 1px- and 2px-wide spacing between the tiles in the source-image and the problem is still there.

Does anyone have a clue what could be causing this issue?

Thanks in advance!

8 posts - 7 participants