This Scratch Forum will give examples of scripts. It will also give a couple basic scripts so New Scratchers can have help. If you have any questions or comments please post a reply to this topic.
Example #1: When flag clicked, go to front, show, glide [20] secs to x: [0] y: [0], brodcast [Begining], say [Hello World] for [5] secs, hide, stop script.
Example #2: When Sprite1 clicked, go to front, glide [10] secs to x: [0] y: [0], change [color] effect by [25], say [Hello Scratch Viewers] for [5] secs, hide, brodcast [Start], stop script.
Example #3: When Sprite2 clicked, | repeat until---mouse down?, switch to costume [costume2], set size to [50]%, go back [2] layers, turn <- [10] degrees, if on edge bounce, go to front, set size to [100]%, change [color] effect by 15, switch to costume [costume1], | , stop all.
Basic Programs:
-when flag (or sprite) clicked, hide (or show)
-forever, if---mouse down?, pen down
-when flag (or sprite) clicked, brodcast [(insert character(s) for brodcast name)]
-when flag (or sprite) clicked, glide [(insert number of seconds)] secs to x: [(insert number coordinance)] y: [(insert number coordinance)]
-when flag (or sprite) clicked, say [(insert text)] for [(insert number of seconds)] secs
NOTE: ALWAYS remember to test your projects.
Scripting is easy once you get the hang of it so practice. The more you script the harder scripts you can make. Just think of what you want to do and find bricks to do it.
Happy Scratching!
Offline
I have other pages too:
<http://scratch.mit.edu/forums/viewtopic.php?pid=758958#p758958>
<http://scratch.mit.edu/forums/viewtopic.php?id=62965>
<http://scratch.mit.edu/forums/viewtopic.php?id=62538>
<http://scratch.mit.edu/forums/viewtopic.php?id=62644>
Have Fun!
Offline