Fajkowsky Posted September 6, 2015 Share Posted September 6, 2015 Hey I have problem with start NINJA physics mode in phaser. My JS code so far:(function () { 'use strict'; var config = { HEIGHT: 860, WIDTH: 455 }; window.onload = function () { var game = new Phaser.Game(config.HEIGHT, config.WIDTH, Phaser.AUTO, 'haxball', { preload: function () { this.load.image('circe', 'assets/images/circle.png'); }, create: function () { this.stage.backgroundColor = '#3b302a'; this.physics.startSystem(Phaser.Physics.NINJA); }, update: function () { } }); };}());And in chrome I have got:Uncaught TypeError: c.Physics.Ninja is not a functionRegarding this line in phaser.js:80280 :this.ninja = new Phaser.Physics.Ninja(this.game); Link to comment Share on other sites More sharing options...
rich Posted September 6, 2015 Share Posted September 6, 2015 Are you actually using a build of Phaser that includes it? It's not in the standard build, you need to follow the custom build guide to get one with it in. Link to comment Share on other sites More sharing options...
wlk Posted January 25, 2016 Share Posted January 25, 2016 I stumbled on the same problem. For reference, this is the documentation how to prepare a custom build: http://phaser.io/tutorials/creating-custom-phaser-builds Link to comment Share on other sites More sharing options...
Recommended Posts