mazoku Posted May 16, 2018 Share Posted May 16, 2018 I have a tilemap and a character moving on it in all four directions with camera following. When idle everything is perfect but when the tilemap(camera) moves black lines appear on tiles edges. Link to comment Share on other sites More sharing options...
mazoku Posted May 16, 2018 Author Share Posted May 16, 2018 I see the same problem here when the player is near the game end and moves fast. http://labs.phaser.io/css.html?src=src\game objects\tilemap\collision\csv map arcade physics.js Here is a screenshot Link to comment Share on other sites More sharing options...
mazoku Posted May 16, 2018 Author Share Posted May 16, 2018 It looks like related to physics as when I move the player with just changing the x/y those lines don't appear. Link to comment Share on other sites More sharing options...
mazoku Posted May 16, 2018 Author Share Posted May 16, 2018 Ok I see this tile bleeding on all examples, is the problem with me? Link to comment Share on other sites More sharing options...
snowbillr Posted May 16, 2018 Share Posted May 16, 2018 This is an issue that's due to how the renderer draws tiles to the screen. See https://github.com/photonstorm/phaser/issues/3352 https://github.com/photonstorm/phaser/issues/3229 https://github.com/photonstorm/phaser/issues/842 Link to comment Share on other sites More sharing options...
mazoku Posted May 16, 2018 Author Share Posted May 16, 2018 @snowbillr thank you! I found this.camera.roundPixels = true; snowbillr 1 Link to comment Share on other sites More sharing options...
GhostEcho Posted June 10, 2020 Share Posted June 10, 2020 Ran into the same problem, and roundPixels=true did not fix it. Solved it using: https://github.com/sporadic-labs/tile-extruder this handy utility! Link to comment Share on other sites More sharing options...
Recommended Posts