How do I limit the size of an inputtext window?

0 favourites
  • 1 posts
From the Asset Store
Get Ready for the New Wave of "Bottom Screen" Games!
  • Hello,

    My game has an inputtext option for the player.

    The player doesnt actually see the inputtext box, because I linked its content to another text box (let's call it "output_txt_box"), for aesthetic reasons.

    So when the player types on his keyboard, the text is seen in the output_txt_box.

    I want to limit the number of characters that the player can input, but I want this limit to correspond to the size of the output_txt_box.

    Which means any solution having to do with the number of characters ("len", etc.) won't work in my case, as typing a 100 big "A" won't occupy the same space as typing a 100 small "i".

    But that's exactly what I'd like to accomplish : that the limit in the number of characters corresponds to the bottom right corner of the output_txt_box.

    Any idea how to accomplish that ?

    Here is a preview of my output_txt_box :

    Thanks !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)