I am new to Scratch so I apologize if I use the wrong terminology. I am trying to help my daughter's MESA club and I got groups of students to create separate projects depicting different scenes of a story we're trying to tell for the competition. Now that it's time to combine those projects, I'm having a great deal of difficulty in getting the timing down right.
I've tried using the "Extras" button to import each project, but they "overrun" each other. I need some way to "transition between scenes" ... does that make sense?
Additional Basic questions: (1) how do you "reset" the scene to the beginning? (2) how do you switch backgrounds?
I've seen posts about using the "broadcast" commands, and they make sense when I read them, but then when I try to use them they don't work.
Hope someone can help me --- soon!
Offline
Well I know how to reset it and change the background you need to do someting like:
<when green flag clicked>
<broadcast[ beginning ]and wait c>
and then all the sprites have
<when I receive[ beginning
<go to x:(wherever they start )y
<switch to costume[ whichever the first costume is
etc.
To change backgrounds all you need to do is something like
<when[ something ]key pressed>
<switch to background[ and then whichever background
I hope this helps
Offline
well do you mean like a scrolling game or a like a kind of a disco background for the scrolling game you don't use the backgroundyou use a sprite the programining is like this on the new versoin when right/left clicked whatever you like set x to scrollX+480*0 if it's the first one then 1 for the second one etc.
Offline
forgot to add the disco background that uses the background make a bunch of backgrounds then do when flag clicked forever wait .01 seconds next background if you want to see how it worksclick on the blue words on my message and download it
Offline
Make sure every "subproject" has a unique name. Make sure sprites all have unique names (starting with the initials of the sub project, perhaps and make sure background costumes all have unique names)
On all the subprojects, replace the "When Green Flag Pressed" blocks with
"When I recieve (subprojectname)"
This needs to include an instruction to change to their first costume, not just using the default.
The only blocks that should remain as "green Flag" are those blocks that hide sprites that should not appear in previous scenes, these will need to remain as "When Green Flag pressed" even if this means breaking them out of their curent stacks.
******
You should now be able to Import all the subprojects. Then all you need is (on the background, perhaps) a stack of blocks that reads:
When Green Flag Clicked
Broadcast Subproject 1 and Wait
Broadcast Subproject 2 and Wait
Broadcast Subproject 3 and Wait
etc
Offline
Mayhem's explanation is quite good. Rewriting each project so that it starts by hiding everything, then broadcast a message unique to the project to start the actual scripts is a very good idea.
Offline