Text Entry Problem

Get help using Construct 2

Post » Tue Aug 06, 2013 12:19 pm

Hi,

i wanted to allow the player to enter his/her name when they get a high score. The textbox doesnt really fit with the look of the game so i thought about combining it with a spritefont.

Here is the problem i can set the focus of the text box and every tick set the spritefont to the textbox.text, however i wanted to hide the textbox.

I have tried making it invisible, placing a sprite on the top of it, moving it off screen, non of which work. The manual says its an html object so it sits on top of everything else.

Anyone have any ideas how i can allow text entry but keep the style of the graphics? I would rather not have to make some sort of virtual keyboard if possible.

Thanks
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » Tue Aug 06, 2013 12:28 pm

I don't know of a way to get a screenkeyboard to work on mobile, but if it's meant for desktop the textbox could be faked.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 06, 2013 12:29 pm

Not sure if I understood you correctly but have a look at this

https://www.scirra.com/tutorials/624/text-input-using-textbox-and-invisible-textbox
Cyberphaze

What we build can never be destroyed
B
135
S
18
G
6
Posts: 37
Reputation: 14,709

Post » Tue Aug 06, 2013 12:50 pm

@AbelaNET

Great thanks.. looked all over, never thought to look in the tutorials !
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180


Return to How do I....?

Who is online

Users browsing this forum: gamarros, imhotep22, Nimothar, yuji567 and 6 guests