The Textbox in Construct2 does not work with CocoonJs tested on Android. Problem is Textbox does not show up. How can i add a textbox thats shows up in CocoonJs. No settings where changed in the Textbox only 1 is Password 1 is Text. Trying to make a login screen : )
Thanks for reading have a nice day..
It's documented that CocoonJS does not support form controls.
Are they alternatives for the Textbox?
Like if i make my own keyboard with 25 sprites(Keys) and every touch on a key performs :
Text -> settext -> Text.Text & A
Will set text to A
Text -> settext -> Text.Text & S
Will set text to As etc.
This will work but, I dont know how i can delete a letter from the text if they touch backspace. Can you help me with this?
Ashley Is this something Ludei needs to fix or is there possible hope for a workaround like with the AJAX object?
If not I was thinking about making a workaround like — It's less than ideal but should work, no?
Thanks!
I don't think it's something we can work around in the near future. IIRC there was a third party plugin which could render a text box to a canvas.
Nice, that sounds like a great plugn!
After an initial look I didnt see it but I'll keep searching. Or if anyone else knows about this plugin chiming in would be appreciated. :)
If nothing turns up I might try the "build your own keyboard solution".
I'm having the same problem :/ Did you find anything or did you go to build your sprite keyboard?
— If you do need to make your own keyboard, here is an example I made for someone else recently that you're welcome to use.
You could quite easily resize it and store it in a hidden layer and bring it up whenever necessary. Just make sure you add a condition in the On touched events that check if the layer is visible or not.
GeometriX thank you so much for this! It's just what I've been looking for. But one thing here. When I run the layout it works fine in firefox but chrome gives me just a black screen. Do you have any idea why could that be?
Anyway thank you again :)
immigrantsheep, I'd guess your video card drivers or Chrome version need to be updated. I tested in Chrome and it works fine on my side.
My pleasure; enjoy.
Develop games in your browser. Powerful, performant & highly capable.
Great! Thanx again :)
GeometriX one last question. Is there any way to delimit the text length? Let's say I want the used to be able only to type words up to 10 letters.
I'd suggest you create an event that tests len(text.Text), if it's over 10,then do the same action as the backspace key event.
GeometriX thank you. Solved it with mid(Display.Text,0,9). Not sure if it's the best way to do it, but it works just fine :)
Guys, onscreen keyboard looks good on IOS ?