[Javascript] causing script to pause before moving to next command

David Merchant merchant at LATECH.EDU
Fri May 3 16:34:51 CDT 2002


A follow-up, I played around with the script and found that if I delayed 
the computer from making it's moves after the player has made his move 
instead of delaying the sound effects of the computer's moves, everything 
worked great: sounds did not overlap. The call to the computer move 
function is made after the sound effects for the player's moves have been 
made, so a perfect time to delay.

setTimeout("computerMove()",900);

Thanks again!

TTFN,
David

Systems Librarian, Louisiana Tech University
merchant at latech.edu
JavaScript List Administrator (www.mountaindragon.com/javascript/)
Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/)
Webmaster, Memorial Day Page (www.usmemorialday.org/)
Webmaster, Midori Ito Site (www.mountaindragon.com/midori/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020503/5e124ad4/attachment.htm>


More information about the Javascript mailing list