TMXTiledMap artifacts

TMXTiledMap artifacts
0.0 0


I don’t think my terrain image is loading properly, since some tiles have a line on the left side of them of the neighboring tile. See attached screenshot.

When I check the png’s arrangement in GIMP, the grid lines up properly, and the pixel positions of these tiles are proper multiples. Is there some trick I’m missing?

Please let me know if there’s any relevant code I can share.

tileMap = new cocos2d::CCTMXTiledMap(); tileMap->initWithTMXFile("map.tmx");

2013-06-04 22.26.22.png (569.2 KB)


I guess a relevant file would be the tileset I’m using. Most of the textures are in the top right.


You could try setting CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL to 1 (defined in include/ccConfig.h)

Other than that I don’t know :frowning:


Hey that worked! Thanks for the insight.