automatically pull up "keyboard" on devices?

Get help using Construct 2

Post » Tue Jul 02, 2013 11:20 pm

Hi averyone,

I need my app to prompt the user for text. How would I go about making a text box appear and prompt the device (android or IOS) on-screen keyboard to appear to allow the user to enter the text and press enter?

Hopefully a solution that will work on android, IOS, etc etc.

thanks,

Mike
B
49
S
9
G
4
Posts: 425
Reputation: 7,037

Post » Wed Jul 03, 2013 3:01 am

CocoonJS has an option to open a keyboard on android and ios, you can use CocoonJS plugin in C2. Unfortunately DOM elements aren't supported in CocoonJS

You need to create your own textbox by sprites from scratch, but it's not complicated. I'm not sure keyboard object would work with CocoonJS how it can return values from key pressed.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, marcinkowski, Phacanu, Rhindon, Shenkai the ssj and 18 guests