Scratch 2 Script Items
*Notes at end
Motion (blue blocks) | Observations |
move __ steps | |
turn [clockwise] __ degrees | |
turn [ccw] __ degrees | |
point in direction __ | (examples in dropdown) |
point towards (mouse pointer) | |
go to x: __ y:__ | |
go to (mouse pointer) | |
glide __ secs to x:__ y:__ | |
change x by __ | |
set x to __ | |
change y by __ | |
set y to __ | |
if on edge, bounce | |
set rotation style () | (left-right, don't rotate, all around) |
√ x position | |
√ y position | |
√ direction | |
Looks (purple blocks) | Observations |
say __ for __ secs | |
say __ | |
think __ for __ secs | |
think __ | |
show | |
hide | |
switch costume to () | |
next costume | |
switch backdrop to __ | New in v2. |
change () effect by __ | (color, fisheye, whirl, pixelate, mosaic, brightness, ghost) |
set () effect to __ | |
clear graphic effects | |
change size by __ | |
set size to __% | |
go to front | |
go back __ layers | |
√ costume # | |
√ backdrop name | New in v2. |
√ size | |
Sound (dark pink blocks) | Observations |
play sound () | |
play () until done | |
stop all sounds | |
play drum () for __ beats | |
rest for __ beats | |
play note () for __ beats | |
set instrument to () | |
change volume by __ | |
set volume to __% | |
√ volume | |
change tempo by __ | |
set temp to __bpm | |
√ tempo | |
Pen (green blocks) | Observations |
clear | |
pen down | |
pen up | |
set pen color to () | |
change pen color by __ | |
change pen shade by __ | |
set pen shade to __ | |
change pen size by __ | |
set pen size to __ | |
stamp | |
Data (orange-red blocks) | Observations: Variables in v1.4 |
.Make a variable. | |
√ variableName | Appears after variable created |
set (variableName) to __ | Appears after variable created |
change (variableName) by __ | Appears after variable created |
show variable (variableName) | Appears after variable created |
hide variable (variableName) | Appears after variable created |
.Make a list. | |
√ listName | Appears after list created |
add __ to (listNames) | Appears after list created |
delete (1, last, all) of (listNames) | Appears after list created |
insert __ at (1, last, random) of (listNames) | Appears after list created |
replace item (1, last, random) of (listNames) with __ | Appears after list created |
item (1, last, random) of (listNames) | Appears after list created |
length of (listNames) | Appears after list created |
(listNames) contains __ | Appears after list created |
show list (listNames) | Appears after list created |
hide list (listNames) | Appears after list created |
Events (dark tan blocks) | Observations: many are moved from v1.4. New group in v2. |
when [green flag] checked | |
when () key pressed | |
when this sprite clicked | |
when backdrop switches to () | |
when () > __ | |
when I receive () | |
broadcast () | |
broadcast () and wait | |
Control (light tan blocks) | Observations: many are moved from v1.4 |
wait __ secs | |
repeat __ [block] | |
forever [block] | |
if < > then [block] | |
if < > then [block] else [block] | |
wait until < > | |
repeat until < > [block] | |
stop () | |
when I start as a clone | new |
create clone of () | new |
delete this clone | new |
Sensing (aqua blocks) | Observations |
touching (mouse pointer, edge)? | |
touching color ()? | |
color () is touching ()? | |
distance to () | |
ask __ and wait | |
√ answer | |
key () pressed? | |
mouse down? | |
mouse x | |
mouse y | |
√ loudness | |
video () on () | (motion, direction) (Stage, this sprite) |
turn video () | (off, on, on-flipped) |
set video transparency to __% | |
√ timer | |
reset timer | |
() of () | |
√ current () | (year, month, date, day of week, hour, minute, second) |
days since 2000 | |
username | |
Operators (light green blocks) | Observations |
__ + __ | |
__ - __ | |
__ * __ | |
__ / __ | |
pick random __ to __ | |
__ < __ | |
__ = __ | |
__ > __ | |
< > and < > | |
< > or < > | |
not < > | |
join __ __ | |
letter __ of __ | |
length of __ | |
__ mod __ | |
round __ | |
() of __ | |
*NOTES (for all blocks) | Means |
__ | value goes here |
( ) | choose from list |
√ | checkbox |
[ ] | describe the image |
< > | expression |
. . | enclose what the button does |
Last modified 3/21/15 by B L Webster. © 2016 by B L Webster.