Pages: 1
i've tryed it in Scratch 2.0, it DOESN'T WORK.
never worked for me in 1.4 either!
i use repeat (10)
play sound [PKMUSIC v]
IT DOESN'T WORRRKKKK!!!!!!!!!!!!!
Offline
Blayer98 wrote:
i've tryed it in Scratch 2.0, it DOESN'T WORK.
never worked for me in 1.4 either!
i use repeat (10)
play sound [PKMUSIC v]
IT DOESN'T WORRRKKKK!!!!!!!!!!!!!
Do
Repeat 100
Change Volume by -1
Offline
Instead of using the play block, you should be using the volume block, like so:
The script you are currently trying to use just plays the same sound file 10 times, restarting it once every frame.
Last edited by Kileymeister_test (2013-02-13 14:01:18)
Offline
I'm using the "Techno" sound loop which comes with Scratch, it's an 8 sec. loop
Thankfully Scratch tells us how long a sound is when we import them.
when i receive [play_music_and_fade v] set [music_dur_in_sec v] to (8) // number of seconds in the music loop set [reps_to_reduce_volume_by v] to (20) // how gradually do you want to fade the final music? set volume to (100) % repeat (2) // 16 seconds of loop play sound [Techno v] until done end play sound [Techno v] // final music repeat (reps_to_reduce_volume_by) change volume by <(-1) * <(100) /(reps_to_reduce_volume_by)>> wait <(music_dur_in_sec) / (reps_to_reduce_volume_by)> secs end end set volume to (0) %
Last edited by dechan (2013-02-13 14:14:27)
Offline
t h e bloop
Offline
You can use a repeat block to fade in and out.
set volume to [100]% repeat [100] change volume by [-1] end stop all soundsYou can change the volume by minus whatever you want, you could also have a
wait [0.1] secsblock. Just change the amount of seconds and you can have a fast or slow fade out or fade in.
Last edited by cobraguy (2013-04-12 08:35:40)
Offline
Pages: 1