I am very new to Gdevelop. The first dialogue line is working fine but I lost the typewriter effect starting from the second line. The second line just appeared directly without any effect. Can anyone help me take a look at the events?
Hi there and welcome, the first line starts out ok because it starts without any condition. Actually if you mouse release on NewSprite3 while the first line is playing, it will end the clip text too because you are telling it to. You say mouse release, and the clip text is not completed scrolling, complete it. So when you mouse release for the next dialogue, it sees this dialogue is not done scrolling so it completes it.
So if what you’re wanting to do is give the player an option to skip the clip text and get to the point (thank you!! thank you!!), maybe tie it to another key instead of the mouse release. Then the mouse release on NewSprite3 will just let the player go to the next line of the dialogue. The other key will allow people like me to hurry up and read the message before we click NewSprite3 again to get the next message. Unless we want to use the time the clip text is scrolling to run to the restroom or grab a small snack.
Thank you so much! Yes, I could make it work with another key.
Does it mean it is impossible to use left mouse button both for completing the line (when a line is not complete) and and going to the next line (when the line has been completed)? This is achievable in many games so I am wondering.
No of course it’s not impossible, now that I know you intentionally wanted the same button to do both things. So do something like this instead.
Ok so instead of directly asking GDevelop to do those actions you want, you are asking it to do them indirectly with a boolean variable. So now it can’t process both actions of your mouse release event lighting fast in a row so that it looks like it just instantly goes to next line and completes all clip text at once. It must hunt and peck a little before it gets to what you want done. It must get all the way to the bottom where you have hidden your true prize inside the bool variables. It won’t be able to process another action in that event until there is another mouse release.
And please note I’m basically just copying your events. I have no idea what that timer is doing there (if anything!).
Thank you so much! I followed your events and it worked The timer is there to control the speed of typewriter effect. I learned it from a youtube video. Maybe there is a better way to do this.
Nono there is probably not a better way to do the timer. I just meant, I don’t use dialogue in my projects yet so if I made a mistake copying your events, sorry! It’s just because I don’t know what they’re for haha.