Tiles are glitchy on mobile

This is how my game looks on my laptop and this is how it should be. Antialiasing is off.

But on my phone it looks like

If I turn on antialiasing it looks

1 Like

Looks like pixel bleeding. Try extruding your tileset.

2 Likes

For my game, I had already started with an extruded tileset and this didn’t help me. What did seem to work was calling this.cameras.main.roundPixels = true; in my scene’s create function.

Extruding messed up the tiles and they looked glitchy. I made the map in tiled btw.

Keep in mind that extruding the tileset is not the only step, you also have to change the way you load it in Phaser. The guide for the tool I linked goes into further details.

Yes I did follow that but I still couldn’t get it to work right.

I fixed it (kinda) by adding a background of the entire map behind the tiles.

Hi,
Something i noticed in my game with multiples layers, staticLayers causes bleeding, if i change them to dynamic there is rarely bleeding. Static are supposed to be more performant…i don’t know what happens…