text area

  • 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!

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)