xronn Posted January 26, 2014 Share Posted January 26, 2014 Hi, I was using the mario tile set example to guide me to adding my own tilset I created a map on tiled with 3 layers but I'm having trouble adding it as it only seems to add the first layer, has anyone else used a tilesheet with more than one layer, if so how! Thanks! Link to comment Share on other sites More sharing options...
Ryuuke Posted January 26, 2014 Share Posted January 26, 2014 Hi, if you are using phaser 1.1.3 you can do this var layerOne = game.add.tilemapLayer(0, 0, 800, 600, tileset, map, 0); layerOne.resizeWorld();var layerTwo = game.add.tilemapLayer(0, 0, 800, 600, tileset, map, 1); layerTwo.resizeWorld();var layerThree = game.add.tilemapLayer(0, 0, 800, 600, tileset, map, 2); layerThree.resizeWorld();The last parameter of tilemapLayer is the layer number, so you create 3 layers with differents layer number. But on Phaser 1.1.4 is not the same things. Link to comment Share on other sites More sharing options...
Recommended Posts