text area

Get help using Construct 2

Post » Thu Oct 17, 2013 5:11 pm

Hello everyone, how are you doing?

I have the following problem which I couldn't find the solution.
I need to publish a game in HTML5 and it contains a screen which has a TextBox in it. When I touch the screen (any mobile device) to write in the TextBox, the screen (which holds "Letterbox Scale" for the "Fullscreen in Browser" setting) resizes all the game becoming very tiny, because the Android keyboard pops up, leaving less space on the screen for the game.
I need that when the focus is on the TextBox, it shows up zoomed in or, at least, there won't be any resizing, so that I can see what's being written. And that, of course, without having to publish one version of the game for each screen size available out there.

Thank you very much!
B
3
Posts: 1
Reputation: 202

Post » Fri Oct 18, 2013 8:44 am

on textbox clicked:
- system scrollto object textbox
- system set scale to 2

ofcoure you'd have to set unbounded scrolling to yes.

you could also check the window.width and window.height to get a better idea if the size is changed and scale accordingly.
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 » Thu Dec 31, 2015 1:36 am

LittleStain wrote:on textbox clicked:
- system scrollto object textbox
- system set scale to 2

ofcoure you'd have to set unbounded scrolling to yes.

you could also check the window.width and window.height to get a better idea if the size is changed and scale accordingly.


I too have a problem. My app's text box disappears entirely, along with two sprites that are beside it. There is a youtube window which stays visible and doesn't change. Is this the same problem? Thanks.
B
17
S
2
Posts: 88
Reputation: 1,503


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jaytrott86 and 8 guests