Just so you're aware, the only practical way to do this is to use SayBackground. I don't know this will impact your lip sync.
Here's a script module:
http://www.mediafire.com/file/vjd74pf5s45yfs3/SimultaenousSpeech.scm
I understood your PauseAllSpeech() function as wanting to wait synchronously till the queued events completed. I also implemented an alternate wait that's asynchronous. There's also a wait function for individual characters as you'll probably want that for speech timing. Here's an example of both in use:
Code: ags
You can send money along to <pen(nospam)neyb@tpg.com.au> (PayPal, remove (nospam)) if you found it helpful, or I can PM you my bank details. I won't say no to that.
Here's a script module:
http://www.mediafire.com/file/vjd74pf5s45yfs3/SimultaenousSpeech.scm
I understood your PauseAllSpeech() function as wanting to wait synchronously till the queued events completed. I also implemented an alternate wait that's asynchronous. There's also a wait function for individual characters as you'll probably want that for speech timing. Here's an example of both in use:
/* Method 1 */
cEgo.SaySimultaneous("My ding a ling...");
cEgo.WaitSimultaneous(30);
cEgo.SaySimultaneous("... My ding a ling...");
SimultaneousSpeech.WaitForSpeech(); // This is like calling Wait() -- it pauses the game and gives you a busy cursor
cChar1.SaySimultaneous("I want you to play");
cChar1.SaySimultaneous("with my ding a ling!");
cChar2.SaySimultaneous("I want you to play");
cChar2.SaySimultaneous("with my ding a ling!");
/* Method 2 */
cEgo.SaySimultaneous("My ding a ling...");
cEgo.WaitSimultaneous(30);
cEgo.SaySimultaneous("... My ding a ling...");
cChar1.WaitSimultaneousForCharacter(cEgo); // These let a character wait for another before they start talking
cChar2.WaitSimultaneousForCharacter(cEgo);
cChar1.SaySimultaneous("I want you to play");
cChar1.SaySimultaneous("with my ding a ling!");
cChar2.SaySimultaneous("I want you to play");
cChar2.SaySimultaneous("with my ding a ling!");
You can send money along to <pen(nospam)neyb@tpg.com.au> (PayPal, remove (nospam)) if you found it helpful, or I can PM you my bank details. I won't say no to that.