AlexArroyoDuque Posted February 15, 2014 Share Posted February 15, 2014 Hi!I'm upgrading 1.1.3 to 1.1.4 the Phaser version. I have problems with my tiles... In the game the tiles are white and collision doesn't works good. This is my code:preloader this.load.tilemap('level', 'assets/tiles/level.json', null, Phaser.Tilemap.TILED_JSON); this.load.image('tiles', 'assets/tiles/tiles.png', 16, 16); create: this.map = this.game.add.tilemap('level'); this.map.addTilesetImage('tiles'); this.map.setCollisionByExclusion([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); this.layer = this.map.createLayer('name in level'); this.layer.resizeWorld(); Any help? Greetings! Link to comment Share on other sites More sharing options...
rich Posted February 15, 2014 Share Posted February 15, 2014 If the tiles are white it means it didn't find the tileset you used in Tiled. Are the tiles actually called "tiles" in the JSON file? (open it up and have a look!) AlexArroyoDuque 1 Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted February 15, 2014 Author Share Posted February 15, 2014 Many thanks Rich! Link to comment Share on other sites More sharing options...
Recommended Posts