Hi. I'm not exactly sure what to do here then, maybe I can write the script but if folks want to use it they have to copy a portion of it into what ever their main loop is. I figured I could write the script and a user could use it's functions, but if it's going to need to run without haulting other loops just including the file won't work.
Regards: Valiant8086: website valiant8086.com ----- Original Message ----- From: Philip Bennefall To: Gamers Discussion list Sent: Sunday, March 28, 2010 1:55 PM Subject: Re: [Audyssey] bgt question again 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" <valiant8...@lavabit.com> To: "Gamers Discussion list" <gamers@audyssey.org> 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 __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > gamers-unsubscr...@audyssey.org. > 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/gam...@audyssey.org. > If you have any questions or concerns regarding the management of the > list, > please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. 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/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. 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/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.