Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Music is glitching on my project!
- YellowCello777
- Scratcher
5 posts
Music is glitching on my project!
Hello, I am working on a scratch project right now that uses different music that changes depending on the backdrop being shown. However, for some reason, the second and third music is glitching. The first song being used works perfectly, however, when the next backdrop pops up, the second music keeps repeatedly playing the first split second of the song. The same goes with the third. I've checked that I've used the “play sound” block instead of the “start sound block,” and putting some “repeat forever” blocks on some of the script didn't help. I'm still new to scratch (started about a little more than a month ago), but I need help. Thank you.
I uploaded the game for help, which you can find at https://scratch.mit.edu/projects/301785992/
I uploaded the game for help, which you can find at https://scratch.mit.edu/projects/301785992/
- D-ScratchNinja
- Scratcher
1000+ posts
Music is glitching on my project!
It's the scripts on the stage that have
For some reason, those scripts keep repeating. That makes the stop all sounds block repeat too, which makes the music end. Then the music loop makes it play again, and then it ends again, over and over and over again.
I would try moving the stop all sounds blocks to before the loops so that it only triggers once, because you'll only need it to trigger once to stop the others.
I'm happy to remix it to debug it if you'd like.
Hope this helps!
when backdrop switches to [... v]
stop all sounds
For some reason, those scripts keep repeating. That makes the stop all sounds block repeat too, which makes the music end. Then the music loop makes it play again, and then it ends again, over and over and over again.
I would try moving the stop all sounds blocks to before the loops so that it only triggers once, because you'll only need it to trigger once to stop the others.
I'm happy to remix it to debug it if you'd like.
Hope this helps!
Last edited by D-ScratchNinja (April 20, 2019 17:40:14)
D-ScratchNinja • he/him
- The following is my signature, which always shows up below my posts. -
New! Filter through my projects with my website.
Need to fix an issue? Check out this studio for solutions to some common problems!
OS: Windows 11 / Browser: Microsoft Edge / Time zone: PST/PDT
- YellowCello777
- Scratcher
5 posts
Music is glitching on my project!
Sadly, this isn't working. May you please remix and debug? Thank you very much!
- D-ScratchNinja
- Scratcher
1000+ posts
Music is glitching on my project!
Debugged! Remix
D-ScratchNinja • he/him
- The following is my signature, which always shows up below my posts. -
New! Filter through my projects with my website.
Need to fix an issue? Check out this studio for solutions to some common problems!
OS: Windows 11 / Browser: Microsoft Edge / Time zone: PST/PDT
- YellowCello777
- Scratcher
5 posts
Music is glitching on my project!
It works! Thank you!
Last edited by YellowCello777 (April 20, 2019 20:39:57)
- Discussion Forums
- » Help with Scripts
- » Music is glitching on my project!