Skip to content

C# Dialogue handler #21369

Answered by fire-eggs
waqtastic asked this question in General
Discussion options

You must be logged in to vote

>Also, but if a side question - is there a way to use two functions at the

>same time for a single piece of text?

You can call as many functions for a piece of text as you want:

string msg = "Here is some text";
typewriter(msg);
Dialogue(msg, "cyan");

>I wanted to add a typewriter style effect to text so it doesn’t just pop up

>but I’m not sure how to go about that.

I googled “typewriter effect C#” and found a forum thread which shows how you might create a typewriter-like effect.  Or this one. Except both of them are missing a  final “Console.WriteLine();” call to move to the next line.

You could add a Console.ReadKey(); call at the end of your Dialogue() function to pause for user resp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants