sekao Posted December 26, 2014 Share Posted December 26, 2014 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 More sharing options...
hivernoir Posted February 5, 2015 Share Posted February 5, 2015 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 More sharing options...
shmikucis Posted February 6, 2015 Share Posted February 6, 2015 Hi, have you tried MightyEditor? It is an alternative for tiled. As editor is based on Phaser then you wouldn't run on these kind of errors. Here is an example of tiled map and collisions http://mightyfingers.com/tutorials/display/tilemap/ Link to comment Share on other sites More sharing options...
nkholski Posted February 15, 2015 Share Posted February 15, 2015 Rotated and/or flipped tiles is not supported by Phaser until next release. Rich merged a pull request on Github that I made adding this feature to the dev-branch for Phaser 2.3. There is a four days old build to download and test. Link to comment Share on other sites More sharing options...
Recommended Posts