SoPhased Posted July 25, 2017 Share Posted July 25, 2017 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 More sharing options...
Recommended Posts