Hi Brandon,
I meant to write this sooner, but... oh well. This is off the top of my head an untested:
There are two ways of doing what you want, either you write a Script
instance or else you handle it in a doit method somewhere. The most
flexible way uses the doit method; it is more complicated to support
looping sounds with the script method, for instance. If you use the
script method, you specify a script as a parameter to the play
method. The script then gets cued whenever a cue is hit - you can
pick out which one by looking at the signal property of the
sound if you want to differentiate. If you use doit, you should
instead check the prevSignal property. Also, if you use a
script, you'll want to be mindful of timing issues if characters are
moving about on the screen (this is called a "race condition", in case
you didn't know). Conversely, I find the script method to be easier in
simple cases.
Regards,
Lars