Fenopiù Posted January 30, 2018 Share Posted January 30, 2018 Hi all! I didn't find a function to create and manage input boxes in Phaser... I'm blind or it doen't exist for real? Link to comment Share on other sites More sharing options...
Str1ngS Posted January 30, 2018 Share Posted January 30, 2018 I made a plugin specificly for that: https://github.com/orange-games/phaser-input Link to comment Share on other sites More sharing options...
Fenopiù Posted January 30, 2018 Author Share Posted January 30, 2018 3 minutes ago, Str1ngS said: I made a plugin specificly for that: https://github.com/orange-games/phaser-input Is still updated? I've saw a lot of old issues so I've supposed is no more updated. Link to comment Share on other sites More sharing options...
Str1ngS Posted January 30, 2018 Share Posted January 30, 2018 Im currently not spending time on it no, some issues are implementation specific as well. your other option would be https://github.com/goldfire/CanvasInput but it doesn't support WebGL Link to comment Share on other sites More sharing options...
Fenopiù Posted January 30, 2018 Author Share Posted January 30, 2018 It doesn't event start in Phaser 2.6.2 with Typescript :-( I've put phaser-input.js and phaser-input.d.ts in mypath/paser-input, then I call Phaser and phaser-input in my index.html <head> <script src="mypath/phaser/phaser.js"></script> <script src="mypath/phaser-input/phaser-input.js"></script> </head> When I activate the plugin: game.add.plugin(PhaserInput.Plugin); Visual Studio returns: (TS) Argument type 'typeof Plugin' cannot be assigned to a parameter type 'Plugin'. In type 'typeof Plugin' there is no 'active' property. Link to comment Share on other sites More sharing options...
Str1ngS Posted January 31, 2018 Share Posted January 31, 2018 Weird, we use TypeScript for all our projects and haven't seen this issue so far. Did you correctly reference the definition file? Link to comment Share on other sites More sharing options...
Fenopiù Posted January 31, 2018 Author Share Posted January 31, 2018 Like for Phaser, I've put the definition file in the same folder of the js file. What I've done is all in the previous comment. Link to comment Share on other sites More sharing options...
Recommended Posts