I'm trying to have a character type dialog

0 favourites
  • 10 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hi everyone. I'm trying to have a speech balloon pop up and when the player taps on it the dialog advances to the next paragraph.

    I followed on online tutorial but he was using the keyboard and I am making this for phones/tablets/pc using touch and mouse (mouse being the touch).

    I can't seem to get it to advance to the next block of text.

    I just want my speech balloon to appear when the button/icon is tapped (check)

    Initial text to typewriter out.

    Text to advance to the next block when the 'speech balloon' is tapped.

    Any ideas?

  • Did you manage it to work with the keyboard?

    Typewriter text "txt" over 0 seconds makes no sense. It will just print "txt" immediately.

    Also, I think event #6 is triggered every time you tap the text, whether the typewriter has finished or not. You should probably change events 4-6 to this:

  • I've been at this a couple of hours and still no progress.

    There has to be a simple way that I'm just not getting.

    How can I?

    Start a dialog by pressing a button which makes typewriter text appear then

    if they click on that text or the speech bubble advance to the next string of text

    and if needed another?

    I have let's say button 1 on the side. They click on button one and a speech bubble appears and typewriter text.

    Then they click on that text or the speech bubble (not the button) and that text is gone and the next part of the message types out.

    If I can see a couple lines of code example I could figure it out from there. The tutorials I've been watching have so many other elements that I get lost in the weeds.

    This demo https://www.construct.net/en/free-online-games/dialogue-box-lazy-people-3668/play with the third option with the pig is perfect for what I am trying to do BUT the file is no longer available unfortunately.

  • WOW! Thank you so much!

    I've got it working in my game.

    I've run into two challenges:

    I've got it not starting when clicking a button called "Sprite_Calm' which makes the text box )Text_Calm) appear and a speech bubble sprite behind it.

    And I have it advancing when you click on the speech bubble.

    But at the end I can't make the speech bubble (and probably the Text_Calm) disappear then start again if the 'Sprite_calm" button is pressed.

  • If you want the typewriter to start when Sprite_Calm is tapped, then you should move Next function call to that event.

    I don't understand your code. Why are you setting Paragraph variable to "-1"? It's a number and it's supposed to increment with every block of text.

  • I did that because I thought that would restart the event if the Sprite_calm button was pressed so the whole process would start from the beginning.

    I'm trying to get the dialog started when the 'sprite_calm' button is pressed and then the dialog to advance when the speech bubble is pressed (instead of the calm button) which thanks to you now works perfectly.

    Now I'm trying to get it to replay if the 'sprite_calm' button is pressed again.

  • Wow! Thank you so much. You've been so helpful.

    I really appreciate it.

    I'll incorporate it when I get home after work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've been monkeying with your file and trying to get it to work with multiple buttons.

    The objective is the have a 'feelings' level where kids can tap on a 'feelings' button and get some tips on how to deal with those feelings via a speech bubble.

    I uploaded everything in case you wanted to take a look at my particular files.

    https://www.dropbox.com/scl/fo/m6wpr6zkszwtanyv1e5ce/AKJHa5aInb6FitXheNaPdoA?rlkey=5p4i3ldp6owhoug7et18o92k4&st=qaojd3xy&dl=0

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