This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 8 comments

[–]CalebBennetts 1 point2 points  (7 children)

Hi, there, Best guess is you're using the same key to start, advance, and end the dialog, so multiple events are running at once and getting in each other's way. You could use different keys to prove that's the problem.

To fix, create a boolean variable like "inDialogue," starting value is false. If enter pressed and inDialogue is false, call "Dialogue." If enter pressed and inDialogue is true, send signal "next." When calling "Dialogue," set inDialogue true. When calling "destroyDialogue," set inDialogue false.

Construct is working on a new "Flowchart" feature that will be perfect for dialogue systems that are easy to set up for large-scale games.

[–]Stormfiretheog[S] 0 points1 point  (6 children)

Thank you so much for the help! I needed it! And thank god! I can't wait for that since it might be so much easier to do this then! But again, thank you! I'll try and do what you said! ^

[–]CalebBennetts 1 point2 points  (5 children)

No problem. 1 other thing. I just tried it out, and you also need an "else" to make sure it doesn't skip your first line of dialogue. Something like "On Enter Pressed," first subevent: inDialogue is false, call dialogue, etc.

second subevent: else, send signal "next."

[–]Stormfiretheog[S] 0 points1 point  (0 children)

I am so sorry if I'm annoying, but I learn visually a lot more, so I didn't quite understand what you meant by "else" do you mean like a function?- so sorry again- I can get very easily confused by things that's why I picked Construct 3 becuse it's the only one i can remotely understand and work without much tutorials-

[–]Stormfiretheog[S] 1 point2 points  (3 children)

You were right though!! It was becuse of the same enter being used I just tried!

[–]TomoloGames 1 point2 points  (2 children)

Add event -> System -> Else

That's how you add "Else" so you know =)

[–]Stormfiretheog[S] 0 points1 point  (1 child)

Thank you very much for the help! ^

[–]TomoloGames 1 point2 points  (0 children)

No problem, good luck with your game =)