Jump to content

I get a strange error with tilemaps


Hope Yeu
 Share

Recommended Posts

Hello! so I've just generated my first fairly big map (240x240) and I'm having an issue.. there are some tiles that are.... dead
When I walk on them, or even up to them I get a strange error
"Uncaught TypeError: Cannot read property '2' of undefined"
It's complaining about this line in phaser:
 set = this.map.tilesets[this.map.tiles[tile.index][2]];

I've been trying to figure it out for a couple hours now and am just about to give up.. any ideas guys?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

dich vu giup viec nha uy tin giúp việc nhà chuyên nghiệp

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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