valueerror Posted July 30, 2014 Share Posted July 30, 2014 this is the line that worked perfectly in 2.0.5layerobjects_tiles = game.physics.p2.convertCollisionObjects(map,"objects");now i get : TypeError: a is undefined phaser.js:65567 if i comment out this line my game works fine... (without the objects of course)those objects are polyline objects created with tiled. edit: i tried to remove all the polylines from the layer "objects" and my game loads.. so what is wrond with tiled polylines in phaser 2.0.7 ??? a can place rectangles or circles without getting the error but those objects will never collide in phaser because they are not implemented.. how do i fix that? thx Link to comment Share on other sites More sharing options...
rich Posted July 31, 2014 Share Posted July 31, 2014 I think this is a result of #883 - https://github.com/photonstorm/phaser/issues/883 but see my latest fix for it. Link to comment Share on other sites More sharing options...
valueerror Posted July 31, 2014 Author Share Posted July 31, 2014 thank you rich.. i'll give it a try this weekend :-D Link to comment Share on other sites More sharing options...
CrowBot Posted August 1, 2014 Share Posted August 1, 2014 I tried the latest Phaser.js and still run into this issue Trying to post a topic for it, maybe you can check my JSON and tell me whats wrong? It's Tiled output. Link to comment Share on other sites More sharing options...
valueerror Posted August 3, 2014 Author Share Posted August 3, 2014 hi everybody.. i just found some time to build the latest dev branch with grunt and the error is gone.. thx rich - thank you very much ! i've added the compiled version of phaser.min.js (just download and remove the txt extension) phaser.min.js.txt Link to comment Share on other sites More sharing options...
Recommended Posts