NgL Posted June 1, 2018 Share Posted June 1, 2018 how do i can create InputField in phaser 3. Link to comment Share on other sites More sharing options...
PurpleRed Posted June 4, 2018 Share Posted June 4, 2018 You can find input documentation here. https://labs.phaser.io/index.html?dir=input/&q=Input Try not to post your questions in the Demos and Projects area next time. :] NgL 1 Link to comment Share on other sites More sharing options...
NgL Posted June 5, 2018 Author Share Posted June 5, 2018 Thank you. but i mean how i can create box text to input value. I dont see what i need in document. can you give me a advice? Link to comment Share on other sites More sharing options...
snowbillr Posted June 5, 2018 Share Posted June 5, 2018 There's no native Phaser input box. You've got two options: 1. Create an input box from scratch in Phaser. That means drawing the box, listening to keyboard and mouse events on it, updating the box when the user adds or removes characters, knowing if the box has focus, etch. Which is a lot of work. Instead, you are probably better off overlaying some HTML on top of your game with an regular old <input type="text" /> HTML input in it. Here's a tutorial that uses that concept, but isn't quite what you are looking for: https://www.joshmorony.com/creating-a-shop-with-purchasable-items-in-a-phaser-game/ Link to comment Share on other sites More sharing options...
wclarkson Posted December 13, 2018 Share Posted December 13, 2018 This response is probably a bit late to be of help to you, but I had the same problem. This is what I came up with. https://phasergames.com/phaser-3-input-text-form-ui-part-1/ Link to comment Share on other sites More sharing options...
Recommended Posts