My students created what would appear to be a simple program with several sprites that move simultaneously, change costumes, etc. We have done similar with no problems in the past. Each script works on its own, but when played together, it freezes at the first "wait 1 secs" block for one of the sprites. I have tried any number of things but cannot seem to figure this out... help?
Offline
This is a link to the project, in case you want to test it for yourself. http://scratch.mit.edu/projects/kellyvaughan27/3056601
Offline
In sprite 1 you are using a stop all block after a play sound block.
Because the play sound block is not a play sound and wait block the entire script will stop.
Only use a stop all block when you want the entire program to halt.
Last edited by dechan (2013-01-24 00:33:24)
Offline
Also, since sprite 1 is handling the music you can have both sounds looping like this:
when gf clicked set [served] to [0] repeat until <(served) = [1]> play sound [HumanBeatBox1] play sound [HipHop] until done endYou want to put the "until done" on the longest sound loop in your script.
when I receive [handstand] set [served] to [1] broadcast [ohhhhh Jayden got served!!!] say [ohhhhhhhh Jayden got served!] for (10) secsBecause "served" is a global variable (please do not make it belong to a specific sprite) all sprites and the Stage can see and change it.
Last edited by dechan (2013-01-24 01:00:41)
Offline
Oh... thanks. I feel silly. When my students showed me and I was playing with it, those other scripts weren't visible, and I never even saw them... just resized, and yes, it's obvious. Sigh. Thanks!
Offline