fkkcloud Posted March 6, 2016 Share Posted March 6, 2016 Hi, I am running below code, this.game.physics.startSystem(Phaser.Physics.NINJA); and, I can't seem to enable it.. Quote phaser.js:81442 Uncaught TypeError: c.Physics.Ninja is not a constructor above error.. What am I missing, should I import another .js file just for Ninja? Thanks, Link to comment Share on other sites More sharing options...
shnfara Posted April 5, 2016 Share Posted April 5, 2016 Me too, I get this error when trying to enable ninja physics, which is copy-paste from the examples... moving from createjs to phaser, gotta say the level of inconsistencies in the documentation and examples is pretty frustrating. Were you able to find a solution? I'll let you know when I do... Edit: So this is brilliant: Link to comment Share on other sites More sharing options...
shnfara Posted April 5, 2016 Share Posted April 5, 2016 (edited) http://www.joshmorony.com/setting-up-ninja-physics-in-phaser/ I made a custom build for us, don't follow the grunt installation instructions in that guide, they are borked... phaser-ninja-physics.js Edited April 5, 2016 by shnfara Uploaded custom ninja build Link to comment Share on other sites More sharing options...
Recommended Posts