Keyboard/Touch Input for mobile

Discussion and feedback on Construct 2

Post » Fri Jun 24, 2016 2:20 am

I understand adding "Keyboard Input" if keys are used during game play, because you have to define the key functions, but if they are only being used to type is it really needed? Entering a player name for example.

Some mobile devices have a mouse or have the ability to be hooked up to one. Does "Touch Input" work with a mouse if exported to another device?
B
68
S
37
G
13
Posts: 242
Reputation: 12,787

Post » Sun Jun 26, 2016 8:00 pm

depends.
you can make "fake keyboard" - all buttons as sprites, and when you press one of the buttons - add that letter to the name.
of course you'd have to make delete key / every button key / delete all key.

when you use keyboard it automatically gives you available android/ios keyboards. but they can't be stylized. or integrated inside game, they appear above game.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 627
Reputation: 9,457

Post » Mon Jun 27, 2016 2:03 am

So if I only had one field in the whole game that required keyboard for input, but the rest of the game is mouse or touch, I still have to add keyboard? I am asking if smart devices will automatically recognize input fields and bring up keyboard or if keyboard input has to be added into the project so the device will recognize a text field?
B
68
S
37
G
13
Posts: 242
Reputation: 12,787

Post » Mon Jun 27, 2016 6:56 am

you can implement that or use existing keyboard as it works normally.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 627
Reputation: 9,457

Post » Tue Nov 07, 2017 11:02 pm

Hello im a newbie in construct2. im glad to ask to you all, how do I create a virtual keyboard that can link to a keyboard plugin to type sprite fonts in a typing game? I got trouble here. thank you so much before :D
B
3
Posts: 2
Reputation: 179

Post » Fri Nov 10, 2017 1:28 am

You don't want to link a virtual keyboard to a real keyboard, doing so gets rid of the purpose of the virtual keyboard.

A virtual keyboard is an on screen keyboard made up of sprite objects.
This allows you to control how the user types things into the game.

The Keyboard plugin allows the user to just type using the keyboard that is in their device.

If you use sprites for a font you will have to create an object for each letter. You may want to look up web fonts instead.

https://www.scirra.com/tutorials/236/us ... ext-object
https://www.scirra.com/tutorials/237/ho ... -web-fonts

You can upload the font files into the game, it doesn't need internet access to use them.
B
68
S
37
G
13
Posts: 242
Reputation: 12,787


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests