Display multiple text lines at once?

Omegas7Omegas7 Member Posts: 37
edited November -1 in Working with GS (Mac)
Is it possible to display multiple text lines with Display Text behavior?

I have tried doing the option enter thing for having many lines, but the game would
display all the lines in a single line...

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Try Alt and Enter. I think that worked for me.

    On a related note, I discovered something by accident tonight that people might find useful (if you didn't already know!).

    As you know, if you use display text you have to set the alpha of your actor to 0.

    I made a couple of actors, called them 'control scheme 1' and 'control scheme 2' and displayed this text with them as placeholder.

    I them made a couple of images, green lines on a black background, and put them in the images tab and moved them up to the relevant actors.

    Of course, the actors looked blank as the alpha was 0.

    So I then went to each actor and chose green as the colour, making the alpha 1 for each actor.

    I imagined that having the alpha as 1 would not display the text and the images would replace the text.

    The text remained however, and I got this nice result using just two actors: http://quantumipod.googlepages.com/SelectControl.png

    Hope that helps someone. No idea why it worked out like that, but pretty nice nonetheless!

    Cheers,

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • Omegas7Omegas7 Member Posts: 37
    That works when writing plain text, but it won't work for me with attributes...
    What now?
  • rivetopiarivetopia Member Posts: 12
    is there an answer to this yet?
  • rebumprebump Member Posts: 1,058
    nm
  • ORBZORBZ Member Posts: 1,304
    Multiple lines are possible by embedding the newline escape sqeuence:

    "\n"

    you can appen it to a variable with the concat operator: ..

    Example:

    self.value1.."\n"..self.value2
  • firemaplegamesfiremaplegames Member Posts: 3,211
    @QS: you don't HAVE to set the alpha of an actor to 0 to display the text. the text will appear regardless of the alpha of the actor. Somewhere it recommended that you set the alpha to 0 just so you don't see the default white box in a HUD or something...

    Cool effect though!
  • iSaladiSalad Member Posts: 4
    Great!!
Sign In or Register to comment.