Is there a way in Impact to create a text input box where players could input their name at the start of the game, or write messages to each other?
I saw the game "Bionic Battle Browser Bots" has a text input box at the beginning and I am looking to do something similar.
Thank you in advance of course ;-)
hmm sounds like you need to use some jquery text box help
create a dialog box above the canvas layer, and put the textbox there.
sorry i don't have code now, but i'll think up something soon
Cool, will give that a shot!
8 years ago
I did Bionic Battle Browser Bots and wArp text boxes purely with HTML/CSS. I have the CSS div hidden on page load and then my game's JS displays it when it starts or when you press the corresponding key to change your name. A look at the page's HTML source will give you that side of it. I'll try to dig up the JS function to toggle a div's display...
I actually managed to use a text area and looking into using jQuery and had some success (thanks fugufish ;-)) But a chance to peek at your code would be fantastic for some other features I have in mind.
8 years ago
Would you be so kind to give a small explanation of how you made this work for you?
thanks in advance,
It's mine impression or this shouldn't be the approach used if you want to deploy to multiple platforms, as only the canvas would be available to the platform itself (apart of web)?
@SirPereira, you're right, if you are using Ejecta to package for iOS, not all DOM elements are supported (for speed among other things). But if just targeting the browser, I think it's a good approach.
Page 1 of 1