stopping a sound from playing?

okay I’ve figured out how to get sounds playing… but how do I turn a sound off? eg. I have a sound playing and I press S to turn off the sound… is this possible?

Yes. It can be done with just logic bricks. Take a look at this file:
http://savefile.com/files/523497

When you start the scene, you’ll notice the sound playing. Press S and the sound will stop; press it again it’ll resume. The way I achieved this effect is with a Boolean Property. When the property is True the sound will play, when it is False the sound stops. Hope this helps.

hey sweet thanks for that… I didn’t realise you could hook up the sound in that way… the file works.