Hello there,
BGT does not support neither co-routines nor multithreading, as both of
these concepts are rather advanced; especially for beginners. However, the
sound object has asynchronous methods so that your script will not block
while the method in question is executing. There is the play method which,
when called, will just start the playback of the sound and then return
control to your script immediately. you can then go into a loop and check
the playing property of this sound in every cycle, while simultaneously
performing any other tasks in the same loop. What I'm trying to say is, you
are not restricted to performing just one operation inside your loop,
checking if the sound is playing can be one of 10 things that you do. So
while the BGT engine does not at this time support threads or co-routines,
there's nothing stopping you from accomplishing what you want with just one
loop. Q9 is a good example of this, I do hundreds of things at once there
without blocking.
Kind regards,
Philip Bennefall
----- Original Message -----
From: "Valiant8086" <[email protected]>
To: "Gamers Discussion list" <[email protected]>
Sent: Sunday, March 28, 2010 7:45 PM
Subject: [Audyssey] bgt question again
Ok.
This one is a whopper. I'm considering porting the auto it voiceover
script I wrote for PKB group to bgt so we can have the same capabilities
there as we do with auto it. I'd like to know if it's possible for bgt to
run more than one loop at a time. In auto it, when the voiceover there
runs it stopps Auto It's main loop and would mess up say a racing game if
you tried to check how fast you were going. it would make the game pause
while it was reading it. Is there a way around that with bgt?
The voiceover script has one loop in it that makes it wait for the
currently playing file to stop or to be near to stopping before it goes on
to play the next one. Can that loop run without calling a hault to the
rest of the program?
Regards:
Valiant8086: website valiant8086.com
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to
[email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the
list,
please send E-mail to [email protected].
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].