I found out that you can't pause a song or sound once it is being played, it only allows you to restart or play the song/sound form the start. Maybe there should be a pause/play block. That could be helpful.
Last edited by RagnARok (2009-05-10 19:30:01)
Offline
[setblocks]
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
[\setblocks]
[setblocks]
When P clicked
stop all sounds
set "sound playing" to 0
[\setblocks]
[setblocks]
When S clicked
set volume to 0%
play sound "sound"
wait "length so far" seconds
set volume to 100%
set "song playing" to 1
[\setblocks]
Offline