Dialogues like in a JRPG

This forum is currently in read-only mode.
From the Asset Store
Customizable speech bubble dialogue system! With this dialogue system, you can finally have speech bubbles in your game!
  • I want dialogues like in a Japanese RPG, where there is a portrait of the character talking, and lots of text to read for each character.

    I was trying to learn how to use the Text Manipulator object to try to do this, and some advice on how to use it would help since I could not find out how.

    I want to be able to read all the dialogues from files, so I can write all the text for a character and not worry about measuring it to fit on the text box, so if the text loaded into the text box reaches two lines of text, it automatically stops reading the text from the file and waits player input so it can display other 2 lines of text until the dialogue for that character is over, then it switches to another character dialogue text.

    If possible, I want to be able to read from a file the name of the character, all it's dialogue, what portrait to show and the position of the text box. That would be all I need, for now.

    How could I achieve this?.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am doing a similar game Making a Panel Object visible with a picture and text box Object on it. Mine is much simpler so all my test is embedded in to the program.

    If you really want to read it form a file the simpler way might be to pre-format it onto files and then read thew one you need with an INI Object.

    Unless you have so much text that it bogs down your program I suggest you put it all in the game. This way no one can pre read it.

  • Man, I've done this once, when I was doing a platform-rpg (like Flashback), but I lost everything

    I was using the Timeline object, and using the parameters on each step to determine which character was saying. It was working perfectly!

    The timeline object is VERY powerful, but it is a bit stiff right now (you can't add step in the middle of the timeline, and you can't rearrange them...)

    I'll try to make a .cap this weekend, when I'm free, to show it.

  • Great, Thanks both. I figured a nice way to do it just using Timeline object, like this:

    I create a timeline with no periods, an empty one, and I add periods with events, each calling the textbox with the desired text and eny other action I want. I also put a text object called "Text_test" with a private variable called 'text number' to be able to switch to the next timeline period when a key is pressed. Make sure to uncheck the Timeline not to load on start on the properties bar.

    For example:

    +On Collision between Player and Character

    -Timeline: Load and Play Timeline "Timeline1"

    -Timeline: Add str(Text_test('text number')) period <-- I use a private variable with a starting value of 1

    +On Period "1" begin: Write Text "First dialogue Text"

    +On Period "2" begin: Write Text "Second dialogue Text"

    +On Period "3" begin: Write Text "Third dialogue Text"

    +On any key pressed AND Player Overlaps Character:

    -Timeline: Finish time period str(Text_test.Value('text number'))

    -Text_test: add 1 to 'text number'

    -Timeline: Add str(Text_test('text number')) period

    I hope that helps, and thanks for the ideas!.

  • I made these a while back so they're not exactly what you're looking for but give them a peek.

    http://www.box.net/shared/8zb2lnnsca

    This first Cap gets dialogue from an INI file and places it into Hash tables at the start of layout so they can be based on levels.

    http://www.box.net/shared/xtbcikf6r3

    The second Cap scrolls text but I never added the ability to determine if you're stopping mid-word and cut off beforehand. (You have to type text into the box to see it in action.)

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