i would like some help with the "text" object

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • hi everyone

    i have run across a little problem but i cant find a solution so id like to ask for help here

    my problem:

    i have a text object in my scene with some text in it

    there is also a edit box in the scene where players can type stuff in

    i know how i can send the text from the edit box to the text object so that it replaces the old text

    or how to use a event to change the text.

    and that is the problem.

    i dont want the text typed in the edit box to override the text in the text object but i want to Add it to the text object without overriding the old text so it gets below the already existing tekst

    and i would like to edit multiple lines and i just cant figure out how.

    i know you can do that if you double click the text object but you cant edit it like that in the event window.

    here is a example:

    text object = "hello everyone"

    edit box object = "hello"

    now i get

    text object = "hello"

    but i want

    text object =

    "hello everyone"

    "hello"

    im sorry if i am a little vague

    my internship depends on it:P

    if i get the internship i will be under a non disclosure contract so i cant talk about my project now

    i hope someone can help me:)

  • thank you very much!!

    i have been trying things for over a day now!!

    i came up with this idea to add lines to a text object:

    set text
    textfile.Text & NewLine &  "please wait a moment..."[/code:v9y4o77a]
    
    textfile is the name of the text object
    is this a correct method??
    
    if someone has a better solution please tell me
    oh and one other little thing:  
    can i make the background of the edit box transparant and change the text colour??
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • set text
    textfile.Text & NewLine &  "please wait a moment..."[/code:w5umtw6p]
    
    textfile is the name of the text object
    is this a correct method??
    

    Yep.

    [quote:w5umtw6p]can i make the background of the edit box transparant and change the text colour??

    Nope.

    Just make your own custom edit box if you want to change the appearance of it:

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