dchhetri Posted December 14, 2013 Share Posted December 14, 2013 Get some warning message on console: [Warning] Phaser.Loader fileComplete invalid index 3 (Loader.js, line 933) I don't see any sprite loaded up and if I try to load up my tile map it errors out: preload:function() { console.log('in Preface::preload'); this.game.load.tilemap('lance-house-living-room', './res/tilesets/room2.json', null, Phaser.Tilemap.TILED_JSON); this.game.load.tileset('lance-house-living-room-tileset', './res/tilesets/room.png',32,32); this.game.load.spritesheet('old-lance','./res/tilesets/characters.gif',32,32); this.game.load.spritesheet('children','./res/tilesets/childs.png',32,32); },//LEADS TO THE FOLLOWING ERROR:Tilemap.js:32TypeError: 'null' is not an object (evaluating 'game.cache.getTilemapData(key).layers') The thing is I'm just switching the /src/ folder between version, if I revert back to version 1.1.2, then everything works. Anyone experience something similar? Link to comment Share on other sites More sharing options...
rich Posted December 14, 2013 Share Posted December 14, 2013 Are you including all the Phaser files? There were new ones added in 1.1.3 and if they aren't being included it will error in random places. Link to comment Share on other sites More sharing options...
Recommended Posts