Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Stopping a sound?
Old
planetsam
Guest
 
Status:
Posts: n/a
Default Stopping a sound? - 02-01-2009, 10:01 PM

How do you have a sound stop when you click on an object?
   
Reply With Quote
Stopping a sound
Old
ottar9919
Guest
 
Status:
Posts: n/a
Default Stopping a sound - 02-02-2009, 09:17 AM

There is a way to stop a sound, but it is not as easy as it seems. Make a boolean variable called "sound on" or something like that. The variable should start as true, and as an event should become false when the mouse is clicked on something. Now make a "while something is true" event and put in the variable. Put the sound in the during part of it. The sound should run while the variable is true, so when you click on an object, the variable becomes false and the sound is stopped.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 02-05-2009, 10:35 AM

Quote:
Originally Posted by ottar9919 View Post
... it is not as easy as it seems.
Certainly true - sound editing in Alice isn't too easy. It's frequently difficult to get a large sound file to start and stop where you want. If Ottar's approach doesn't give you what you want, you might experiment with just letting the file run and turning the volume up and (way) down.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.