Académique Documents
Professionnel Documents
Culture Documents
Yuan, yuandong84@yahoo.com 1
Step by Step Overview
Yuan, yuandong84@yahoo.com 2
Let’s Do An Example!
Run each module and read the splash screen, know how each module
starts and stops. Notice if one module is incompatible with another.
(Conflicts on input/output, hardware requirements, etc.)
Yuan, yuandong84@yahoo.com 4
Step 2 Import all modules.
Open one of the modules to be in the bigger project, and go to
“Files\import project” and select all the other modules into this file.
It has been reported that sometimes you could loose the comments in an
imported project. If this happens, redo the “import” step or just copy
the text of the comments from that original module.
Yuan, yuandong84@yahoo.com 5
Step 2 Import all modules.
Yuan, yuandong84@yahoo.com 6
Step 3 Relocate broadcasts and “scene”.
Decide the order you want to have the modules to run in. (Assume
that all the modules are running in series, not parallel.)
Go to “stage” and modify the code.
Guidelines:
When green flag is clicked, one and only one module starts;
Yuan, yuandong84@yahoo.com 7
Step 3 Relocate broadcasts and “scene”.
In this example, we will let m-effects-grow go first, and m-voice-
recognition next. Here are the changes we need to make to the script
in “stage”.
Starting of the first module:
Yuan, yuandong84@yahoo.com 8
Step 3 Relocate broadcasts and “scene”.
End of the project:
We have assumed in this example that the two modules are running
one after another. But sometimes we would like to have two
modules running at the same time (e.g. audio and video).
Now how would you adjust the broadcast signals and “scene”
variable changes in the “stage” and/or in individual module sprites
so that more than one module can run in parallel in the bigger
project?
Yuan, yuandong84@yahoo.com 9
Step 4 House cleaning.
In this example, these are the code we will throw away from the “stage”.
Yuan, yuandong84@yahoo.com 10
Step 4 House cleaning.
Go to “Backgrounds” of “stage”. Delete all the “biy splash” backgrounds.
Yuan, yuandong84@yahoo.com 11
Step 4 House cleaning.
Other possible changes:
Check if more than one module have variables with the same name
but mean different things. Make adjustments accordingly.
......
Yuan, yuandong84@yahoo.com 12
Step 5 Test, test, test!
Now hit the green flag and see how it goes.
A checking list:
Don’t know why or how to fix it? Contact the people who made
those modules. Their contact information is in the splash
screen of the individual modules.
Yuan, yuandong84@yahoo.com 13
Great job!
When you are done with testing the functionalities, it’s time to be
creative and have fun!
Thank you very much for reading this tutorial with us.
Have a question or suggestion? Please contact
yuandong84@yahoo.com.
For more tutorials and information on the project, check
http://build-it-yourself.com/biy-projects/proj-scratch-
templates/index-scratch-templates.html.
Yuan, yuandong84@yahoo.com 14