Jump to content

TileMap Multi Layer Json array


xronn
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...