jdnichollsc Posted March 8, 2015 Share Posted March 8, 2015 Hi guys! One question please... How Can I create a tilesprite from a TileMap and TileMapLayer? Thanks in advance, Nicholls. luckylooke 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted July 4, 2015 Author Share Posted July 4, 2015 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 luckylooke 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 6, 2015 Author Share Posted August 6, 2015 Hi Rich, this no longer works in Phaser 2.4.2 What is the right solution? Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts