How do I show text one click at the time..?

Hi everyone!
I’m trying to make some sort of dialogue where each click of the left mouse button, game shows next line of text or options. (I’ve tried Yarn and I don’t like it… )
But when I click left mouse button, both texts appear… I’ve tried with and without variables, and nothing helps.
I’m not English speaker so here’s picture so you can understand me better :smiley:

I think is because both events are running when you left click. you should try to add another variable to check the release or maybe a timer.

Why don’t you try yarn GDevelop 5 - Tutorial Yarn Dialogue in GDevelop 5 - YouTube

1 Like

I’ve tried yarn and made some cool dialogs, but It’s too buggy and have same problem with yarn… I’m building some sort of point and click game, but yarn options are more key driven…

I didn’t try yarn yet. that’s exactly what it’s for, but if you don’t like that, you can do as you wanted. but you should use sub events.
in the main event you check if mouse is on the NPC object and left button released (don’t need trigger once because the release) , then :arrow_right: change scene variable NextLine: +1 and nothing else in this event!
now add the sub events as much as dialogues you has. in the condition only compare the NextLine scene variable’s value one after the other. than :arrow_right: do your actions. change text, ect…

1 Like

It works :grinning: Thx! But now I have to manage that only 1st click have to be on NPC and others can be anywhere…

Did it also… :smiley:

Thank you all for helping :smiling_face_with_three_hearts:

1 Like