MarkAndrade Posted March 15, 2014 Share Posted March 15, 2014 Hi all, I'm having a few issues with Phaser 2.0, typescript and physics and hope that someone can point me in the right direction. Not sure if my error is because the phaser.d.ts might be incomplete or I'm just missing something. I'm simply trying to init Arcade physics by calling... this.game.physics.startSystem(Phaser.Physics.ARCADE);This compile error I receive is... The property 'startSystem' does not exist on value of type 'Phaser.Physics.Arcade.World'.If I try and use.. new Phaser.Physics.Arcade(this.game);... I don't get the compile error. Pretty much any other calls to a sprite's body or other physics functions cause an error too. Thanks for the help. --Mark Link to comment Share on other sites More sharing options...
Massemassimo Posted March 17, 2014 Share Posted March 17, 2014 I've got the same problem. Phaser 2.0, IDE Visual Studio Express 2013, using Typescript. My phaser.js and phaser.d.ts are the newest versions. Link to comment Share on other sites More sharing options...
rich Posted March 17, 2014 Share Posted March 17, 2014 Yes the defs are being updated right now, Clark has done wonders on them but still a bit more to go. Latest ones are in the dev branch right now. Link to comment Share on other sites More sharing options...
Massemassimo Posted March 17, 2014 Share Posted March 17, 2014 Love you! Link to comment Share on other sites More sharing options...
MarkAndrade Posted March 17, 2014 Author Share Posted March 17, 2014 Thanks Rich Link to comment Share on other sites More sharing options...
Recommended Posts