Jump to content

[SOLVED] Can't add tile maps to Phaser


Recommended Posts


I have a problem with adding tile maps to Phaser.

First I made a tile map in Tiled, which I exported in JSON, but I also exported in CSV. I looked for examples on the Phaser site, but everybody uses JSON, so that is the reason why I stopped with CSV. Then I added the JSON-file and the PNG to my code as you can see in the image below. The other images are the assets folder and my error's. I checked the code on missing letters, but that isn't the problem. I also watched this link:  https://www.youtube.com/watch?v=8a1uwG-Uefs&index=2&list=PL9iYZZWgVwsfNdldSzmYev0tbVKjeov6w en I read topics about tile maps without any result. 

I tried to add the code "background.dirty = true, I deleted 'null' in game.load.tilemap and deleted the width by game.add.tilemap, but that also won't work. 
A few minutes ago I changed map.createLayer (' Tile layer 1);.

Does anybody has a solution? 




Schermafbeelding 2016-10-02 om 11.24.11.png

Schermafbeelding 2016-10-02 om 11.24.30.png

Schermafbeelding 2016-10-02 om 11.26.36.png

Link to comment
Share on other sites


  • Recently Browsing   0 members

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