Jump to content

how to convert tilemap into tilesprite


nak3ddogs
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
 Share

  • Recently Browsing   0 members

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