Is there a way to pause sounds so that they can be resumed from the place they were paused?
Offline
^ ^
But that could be a Scratch Suggestion.
Offline
No, there isn't.
Offline
Unfortunately, there isn't a pause block, but there are several alternatives. You could mute the sound by setting its volume to 0% (it's under the sound category), or simply stop the whole sound, and restart it later.
Last edited by silvershine (2011-11-26 21:46:28)
Offline
Theoretically, there is. It would just take some time to start playing again.
First, check to see how long the song is. Then use these:
set volume to 100%
set "length so far" to 0
play sound "sound"
broadcast "start timer"
set sound playing to 1
When I receive "start timer"
forever if "sound playing"=1 and "length so far"<"length of song"
wait .1 second
change length so far by .1
When P clicked
stop all sounds
set "sound playing" to 0
When S clicked
set volume to 0%
play sound "sound"
wait "length so far" seconds
set volume to 100%
set "song playing" to 1
Last edited by SJRCS_011 (2011-11-27 13:10:48)
Offline