Jump to content

[SOLVED] Can't add tile maps to Phaser


KnTproject
 Share

Recommended Posts

Hello,

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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