Dialogue box

0 favourites
  • 7 posts
From the Asset Store
Over 2700 files with all the colour combinations from a 15 colours palette!
  • I'm trying to create a dialogue box for a game that records all the conversations that have happened

  • Argh sorry, clicked post too early!

    I'm trying to create a dialogue box for a game that records all the conversations that have happened, ideally showing different speakers in different coloured text.

    I've been trying to use the Textbox object but can't seem to figure out how to add line breaks - all the text I input just appears on the same line. Do I need to use CSS to do this and how would I do it? Also, is the text box the best tool for this or is there a plugin or something that would work better?

  • Have you tried

    "String1" & newline & "String2" & newline

    ?

  • I did - that command works for the Text object but not Textbox (is this a bug?) and I need Textbox for the scrolling & multiple text colours. However, I did find scirra.com/forum/multiline-textbox_topic48864.html which seems to be what I'm looking for, though I haven't tried it yet. Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Out of interest though, has anyone tried doing anything like I described and is a text box the best thing for it?

    Basically I want a scrollable, read-only text field where I can vary font colours from line to line and keep a log of all the dialogue that's been spoken in the game. Sort of like the action and conversation logs in old-timey RPGs. The Text object itself would be ideal (as you can append text and stuff) but if there's a way to make it scrollable, I haven't figured it out yet.

  • newline works in the TextBox. Make sure you have the type set to 'Textarea'.

  • Hey, sorry to keep asking questions about this, I don't really know anything about CSS! Could someone please tell me how I can change font colours from line to line or even word to word in the Text Box object? Eg:

    <font color=gray>Billy:</font> <font color=red>Hello.</font>

    <font color=gray>Bobby:</font> <font color=blue>Hello, you.</font>

    I think it's possible because I've seen someone use text boxes like this before, I just can't figure it out. Cheers!

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