Page 275 - Learn To Program With Scratch
P. 275
condition-controlled loops, 156 hide variable [var], 98, 107
Control blocks insert [thing] at [1] of [list], 217
create clone of [myself], 41–43 item [1] of [list], 218
delete this clone, 41, 46 length of [list], 218
forever, 8, 17–18, 156, 158 [list] contains [thing], 218
if, 128 [list] reporter, 215
if/else, 130 replace item [1] of [list] with
repeat [10], 156 [thing], 217
repeat until, 156–157 set [var] to [0], 98
stop [all], 160 show list [list], 215
wait [1] sec, 2, 12 show variable [var], 98, 107
wait until, 37, 39 [var] reporter, 98, 99
when I start as a clone, 41–43 Data palette, 7, 97–100
Control palette, 128, 155–171 data types, 20, 92–94
controlling sound volume, 55 decimal numbers, 21, 92
coordinates, 4. See also x-coordinate decision making, 91
and y-coordinate decision structures, 128
copying scripts, 9 definite loops, 155
cosine function, 24, 114 deleting
costumes, 9 costumes, 9
center of, 13 sprites, 5
changing, 9, 48 dice, 97
importing, 9, 59 Dice Simulator application, 97–100
transparent color, 14–15 direction convention, 28
switching, 48–49 distance to block, 157
Costumes tab, 9 divide and conquer approach to
countdown, 170 programming, 67, 72
counted loops, 156 divisibility, test for, 21
counter-controlled loops, 156 division operator (/), 21
counters, 164 downloading projects, 12, 16
counting by a constant amount, 165 dragging blocks, 7
CountingByConstAmount.sb2, 165 drawing, 31–32
creating lists, 214 blade, 170
crosshairs, 13 branch with leaves, 88
current, 108 checkerboard, 82
custom blocks, 75–81 flower, 88
editing, 77–78 geometric shapes, 35, 86
Make a Block button, 75 house, 85, 90
New Block dialog, 75 leaf, 87
options, 75, 77–78 leaves, 88
parameters, 77–78 pinwheel, 103
tips for using, 81 polygon, 34
rose, 114
D rotated squares, 34, 82
spider web, 103
DanceOnStage.sb2, 57 square, 33, 69, 77, 82
Dancing on Stage application, 57–60 triangle, 73, 103, 144
Data blocks windmill, 35
add [thing] to [list], 216–217 drawing layers. See layers
change [var] by [1], 98, 102 DrawSquare.sb2, 33
delete [1] of [list], 216–117 drums, playing, 54
hide list [list], 215
Index 253
www.it-ebooks.info

