Archer3CL Posted December 20, 2014 Report 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 Quote Link to comment Share on other sites More sharing options...
mariogarranz Posted December 20, 2014 Report 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.