Sgd Posted October 30, 2014 Share Posted October 30, 2014 Hello community! I was updating some old projects to the newest version of Phaser and I decided to do a little extra optimization so I replaced the phaser.min.js for phaser-no-physics.min.js (phaser/build/custom). Obviusly the game doesnt use any kind of physics (as far as I think, it doesn't) so would be nice to use a lighter library. The problem is when I initialize the game, it doesn't work. The chrome's console tells me this: Uncaught TypeError: Cannot read property 'Emitter' of undefined phaser-no-physics.min.js:10 I have been thinking about this and at the end I came with a question: Is Phaser-no-physics.min.js unable to manage particles with emitter? Is this the problem why I cant use this library? If not what could be? Thank you! Link to comment Share on other sites More sharing options...
lewster32 Posted October 30, 2014 Share Posted October 30, 2014 Emitters depend on Arcade physics for their functionality, so you cannot use the no-physics build if you want to use Emitters. Link to comment Share on other sites More sharing options...
Sgd Posted October 30, 2014 Author Share Posted October 30, 2014 Thank you so much for the answer! Link to comment Share on other sites More sharing options...
neurofuzzy Posted October 31, 2014 Share Posted October 31, 2014 I'm having a similar issue with TilemapLayer - it appears it is not included in the no-physics build. I didn't see any physics-related dependencies in there, but I may be wrong... I do see raycasting and collision-checking... Link to comment Share on other sites More sharing options...
neurofuzzy Posted November 11, 2014 Share Posted November 11, 2014 Can anyone help me with this? Link to comment Share on other sites More sharing options...
lewster32 Posted November 11, 2014 Share Posted November 11, 2014 I guess in some way the Tilemap stuff depends on Physics (probably for the collision stuff?) so you'll just have to use at least a version of Phaser with Arcade in for the moment. Link to comment Share on other sites More sharing options...
neurofuzzy Posted November 13, 2014 Share Posted November 13, 2014 Okay, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts