Jump to content

Tiled


SoPhased
 Share

Recommended Posts

I created a map in tiled but its not finding my tileset.

this.game.load.tilemap('level1', 'assets/tilemaps/level1.json', null, Phaser.Tilemap.TILED_JSON);
this.game.load.image('tiles', 'assets/tiles/twilight.png');
var map = this.game.add.tilemap('level1');
map.addTilesetImage('twilight', 'tiles');
"tilesets":[
       {
        "columns":16,
        "firstgid":1,
        "image":"..\/tiles\/twilight.png",
        "imageheight":256,
        "imagewidth":256,
        "margin":0,
        "name":"twilight",
        "spacing":0,
        "tilecount":256,
        "tileheight":16,
        "tilewidth":16,
        "transparentcolor":"#ff00ff"
       }],

Error: Phaser.Tilemap.addTilesetImage: No data found in the JSON matching the tileset name: "twilight"

 

I fixed it....

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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