Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tilemap from Tiled not rendering in Phaser

I'm stuck in a rut with this game I'm trying to make. The tilemap I'm trying to use has an error stating as follows

Error 1: "Phaser.Tileset - image tile area is not an even multiple of tile size"
Error 2: "Uncaught TypeError: Cannot read property '2' of undefined"
Error 3: "Uncaught TypeError: Cannot read property 'type' of undefined"2

Here is a link to the code I'm using. http://pastebin.com/Dv00KGii

like image 982
Omar Nooristani Avatar asked Aug 06 '15 22:08

Omar Nooristani


1 Answers

Try embedding tileset in your tilemap. For me this fixed this eror: Uncaught TypeError: Cannot read property '2' of undefined"

like image 189
Glogo Avatar answered Oct 16 '22 08:10

Glogo