scoots Posted December 10, 2013 Share Posted December 10, 2013 Quick question: I'm trying to implement a Tiled created Tilemap with multiple layers each with their own sprite sheet. I keep getting errors or the game doesn't render correctly. Is this currently supported? Link to comment Share on other sites More sharing options...
dchhetri Posted December 10, 2013 Share Posted December 10, 2013 Right now it only has support for one sprite sheet per tile map. Link to comment Share on other sites More sharing options...
scoots Posted December 10, 2013 Author Share Posted December 10, 2013 Thanks! Is this in the docs? Would be willing to add it if not. Link to comment Share on other sites More sharing options...
dchhetri Posted December 10, 2013 Share Posted December 10, 2013 You can talk to rich, he might be working on this on the next version iteration. He will probably post here when he logs in. Link to comment Share on other sites More sharing options...
rich Posted December 10, 2013 Share Posted December 10, 2013 I'm currently redoing the entire tilemaps section and it'll be ready for this months version, however even the current 1.1.3 version should support 1 tileset per layer, so the error may be coming from something else. Happy to investigate if you can provide some more details / samples. Link to comment Share on other sites More sharing options...
scoots Posted December 10, 2013 Author Share Posted December 10, 2013 I think I was able to figure out the issue. when adding the tile map layers (game.add.tilemapLayer()) I had the top layer added first and the back layer added second. I thought the layer index attribute in game.add.tileMapLayer() would order the layers, but switching the order of the loading of the two layers seemed to do the trick. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts