Jump to content

Phaser chokes on a particular tile map


sekao
 Share

Recommended Posts

Hello. I am new to Phaser and the very first thing I wanted to try was loading tile maps. The first one I tried worked fine, but when I tried loading another one (without any code changes) I received the following error:

TypeError: map.tiles[tile.index] is undefinedphaser.js (line 70157, col 20)

I uploaded my project below and would love your help:

 

https://github.com/oakes/phaser-tile-map-error

Link to comment
Share on other sites

  • 1 month later...

Hello!

 

I've been having the same problem too.  Did you manage to find an answer?

 

The only thing I can figure out with mine (and it seems really stupid) is that I get the same error when I rotate or flip one of my tiles. (I'm using Tiled to create my tilemaps.) If I create a map and don't do anything different with the tiles, it works just fine. But as soon as I flip one tile, I get the same error.

 

I don't know if this is helpful or not.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

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