Input text via touch

Get help using Construct 2

Post » Thu Oct 17, 2013 4:10 pm

Is there a way to let the player input text into a text box using only the touch input method (no keyboard or mouse)? Maybe something like one of those old style video games where you would click the left or right arrows to choose the letters you want to use for your initials.Burvey2013-10-17 16:14:24
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Thu Oct 17, 2013 4:25 pm

Until there's a reliable way to use the system keyboard across all platforms, I'd recommend building your own.

Here's an on-screen keyboard I made a while ago. It's hooked up to a simple word guess game, but that's just for illustration.

If you really wanted to go with the oldschool highscore name entry thing (which I don't recommend - what a pain for the player!) then I'm sure you could do that by simply cycling through a one-dimensional array that's been preloaded with the alphabet via JSON, and adding to a text object with each current position's value.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Fri Oct 18, 2013 4:01 am

Thank you. That will help a lot!
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, brunopalermo and 24 guests