Maharl Posted June 7, 2018 Share Posted June 7, 2018 Here is the tile spritesheet : Example: https://labs.phaser.io/edit.html?src=src\game objects\tilemap\collision\csv map arcade physics.js These white stripes appear when the camera moves in this example, I have this problem in my own game, any idea what one can do about it? The only thing I could think of doing about it was to add empty tiles to the tile sprite sheet so that transparent tiles would not get stripped by the tile beside it. Link to comment Share on other sites More sharing options...
AndreasLoew Posted June 7, 2018 Share Posted June 7, 2018 The problem is that tiles drag in neighbour pixels. In your case I'd assume that it comes from the 3 empty tiles in the top row. The transparency creates these issues. This might also happen on other tiles if they drag in coloured pixels... The best thing to do is to surround your tiles with a 1 pixel border that repeats the tile colours. Link to comment Share on other sites More sharing options...
aylictal Posted June 7, 2018 Share Posted June 7, 2018 Literally just ran into this same problem. There are several considerations here. Are you scaling your tiles? If you are scaling by a non integer value, this sorta crap can happen. This solution fixed all of my problems with this regard: Link to comment Share on other sites More sharing options...
Recommended Posts