Jump to content

TileSprite from TileMap and TileMapLayer


jdnichollsc
 Share

Recommended Posts

  • 3 months later...

Mi solution:

this.carreteraMap = this.game.add.tilemap('tileMapName');this.carreteraMap.addTilesetImage('tileSetName');this.carreteraLayer = this.carreteraMap.createLayer('tileMapLayerName');this.carreteraLayer.renderable = false;		this.carretera = this.game.add.tileSprite(this.game.world.centerX, 0, this.carreteraLayer.layer.widthInPixels, this.carreteraLayer.layer.heightInPixels, this.carreteraLayer.texture);this.carretera.anchor.x = 0.5;

Regards, Nicholls  :D

Link to comment
Share on other sites

  • 1 month later...
 Share

  • Recently Browsing   0 members

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