Archer3CL Posted December 20, 2014 Share Posted December 20, 2014 Hi guys. Im following this tutorial and at some point i need to to thisvar device = new Phaser.Device();but running the game on console i got -> Uncaught TypeError: object is not a function on that line Any ideas? Thanks for your help Link to comment Share on other sites More sharing options...
mariogarranz Posted December 20, 2014 Share Posted December 20, 2014 I think after Phaser 2.2 Device is no longer instantiable: It is not possible to instantiate the Device class manually. You should wait until the game has been created and then use game.device. Link to comment Share on other sites More sharing options...
Recommended Posts