J
J_GAME
Guest
Hi, im new on the programing stuff and im making a text base game and im trying to make the background music still play while the sound effect of the npc typing is playing and i dont know how.
i have been using this
public static void Print(string text, int speed = 30, string local = "sons/falaVelho.wav")
{
SoundPlayer falaVelho = new SoundPlayer(local);
falaVelho.PlayLooping();
foreach(char c in text)
{
Console.Write(c);
System.Threading.Thread.Sleep(speed);
}
Console.WriteLine();
falaVelho.Stop();
...
//and then i use this to print to the screen
//its in portuguese
Print("Mas antes de tudo, diz-me como te chamas");
i already tried to use threads but the results are the same.
what should I do?
Continue reading...
i have been using this
public static void Print(string text, int speed = 30, string local = "sons/falaVelho.wav")
{
SoundPlayer falaVelho = new SoundPlayer(local);
falaVelho.PlayLooping();
foreach(char c in text)
{
Console.Write(c);
System.Threading.Thread.Sleep(speed);
}
Console.WriteLine();
falaVelho.Stop();
...
//and then i use this to print to the screen
//its in portuguese
Print("Mas antes de tudo, diz-me como te chamas");
i already tried to use threads but the results are the same.
what should I do?
Continue reading...