How do I append text to textarea object?

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I've searched a bit for a solution to this; I'm trying to design a event/combat log for my game and need to be able to append (add) text when new things happens ingame.

    However, the problem is that the textarea object only has "set text", which removes the current text when I'd like it to stay, and have the new text added in the bottom.

    How should I approach this problem? Any solutions appreciated!

  • Hi, try this: Textarea SetText -> Textarea.Text & newline & "TextYouWantToAppend"

    or if You want to put the fresh message to the first line, then:

    Textarea SetText -> "TextYouWantToAppend" & newline & Textarea.Text

    Hope this helps

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, try this: Textarea SetText -> Textarea.Text & newline & "TextYouWantToAppend"

    or if You want to put the fresh message to the first line, then:

    Textarea SetText -> "TextYouWantToAppend" & newline & Textarea.Text

    Hope this helps

    Yes, that's exactly what I had in mind, thank you for your time!

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