How do I get the text TYPEWRITER X,Y coordinates (just where the text appears)

0 favourites
  • 6 posts
From the Asset Store
OpenAI TTS
$10 USD
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Is there a way to retrieve the X,Y coordinates from where the Behavior text TYPEWRITER is - just when ongoing text appears? I want to place a square text corsor infront of the text, folling the letters when they appear, and for that I need to know the coordinates.

    Tagged:

  • As far as I know, this is not possible.

    You'll probably have to make your own typewrighter effect by adding one letter to the text every 0.1s or so.

    Then you will be able to detect the actual width of the text using Text.TextWidth expression and place the cursor in that position. But it will only work for a single line of text.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was afraid of that. It's just so easy to use the built-in TYPEWRITER effect and it works so well. Thanks for the answer 😊

  • dop2000 - is there a way to detect when the line breaks? I don't control the linebreaks with "Newline" its just one long text string so the text breaks automatic (as normal text do 😊)

  • is there a way to detect when the line breaks?

    I guess when the TextHeight increases it means that a new line is added.

    But even if you insert manual line breaks, you still won't be able to detect the width of the last line which is currently typing. Because TextWidth expression will return the width of the longest line in the text object.

  • Okay, thanks anyway πŸ™‚πŸ‘

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