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
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
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 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 do your actions. change text, ect…
It works Thx! But now I have to manage that only 1st click have to be on NPC and others can be anywhere…