nak3ddogs Posted January 5, 2015 Share Posted January 5, 2015 helo. i want convert a i tilemap into tile sprite for my menu background. this.map = this.game.add.tilemap('tilemenu');this.map.addTilesetImage('tile','tileimage', 24, 24, 0, 0);this.layer1 = this.map.createLayer('Tile Layer 1');this.generated = this.layer1.generateTexture(); this.generated.dirty = true; this.testImage = this.add.tileSprite(0, 0, this.game.width, this.game.height, this.generated);i have no clue what is wrong. luckylooke 1 Link to comment Share on other sites More sharing options...
nak3ddogs Posted January 7, 2015 Author Share Posted January 7, 2015 what is the renderer and resolution property of the generateTexture function? Link to comment Share on other sites More sharing options...
nak3ddogs Posted January 7, 2015 Author Share Posted January 7, 2015 pls help. this.generated.context = this.layer1.generateTexture( 1, Phaser.scaleModes.DEFAULT ,Phaser.AUTO);i tryed everything. jdnichollsc 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted March 8, 2015 Share Posted March 8, 2015 I have the same problem u.u Regards, Nicholls Link to comment Share on other sites More sharing options...
jdnichollsc Posted July 4, 2015 Share Posted July 4, 2015 See my solution: http://www.html5gamedevs.com/topic/12994-tilesprite-from-tilemap-and-tilemaplayer/ Regards, Nicholls Link to comment Share on other sites More sharing options...
Recommended Posts