Page 281 - Learn To Program With Scratch
P. 281

remainder, of division, 21, 131    Sensing blocks
                         remix, 249                            answer, 118
                         repeat, power of, 33–35               ask [?] and wait, 117
                         Repetition structures, 155–184        [attribute] of [sprite], 100, 111
                         reporter blocks, 20                   color [c1] is touching [c2]?, 147
                         Revert changes option, 12             current [minute], 171
                         RockPaper.sb2, 151                    distance to [mouse-pointer], 157
                         Rock, Paper, Scissors game, 150       key [space] pressed?, 40, 46
                         Rotated Squares application, 34       mouse down?, 144
                         RotateSquares.sb2, 34, 82             mouse x, 17, 30
                         RotationCenter.sb2, 14                mouse y, 30
                         rotation-style buttons, 11            reset timer, 37, 39
                         rounding numbers, 21, 24              timer, 37, 39
                         Run without screen refresh option,    touching color [color]?, 16, 19, 46
                                  76–77                        touching [mouse-pointer]?, 145
                                                               touching [sprite]?, 18, 37, 41
                         S                                  Sensing palette, 30, 117
                                                            sentinel, 220
                         saving projects to cloud, 16       sequential execution, 124
                         say command, for sprite, 6–7, 50   sequential search, 226
                         Say That Number application, 240   SeriesCircuit.sb2, 110
                         SayThatNumber.sb2, 240             Series Circuit simulation, 110–111
                         scissors icon, 12                  SeriesCircuitWithSwitch.sb2, 111
                         scope                              sharing Scratch elements, 243, 250
                            of lists, 214–215               Shoot game, 195–197
                            of variables, 100               Shoot.sb2, 195
                               For all sprites, 97, 101–102, 106  Sieve of Eratosthenes application, 241
                               For this sprite only, 100,   Sieve.sb2, 241
                                  105, 194                  sine function, 24
                         ScopeDemo.sb2, 100                 size, of sprite, 50
                         Scratch, 2                         slider, 107–108, 110, 114
                            account, creating, 243          slope, computing, 150
                            blocks, overview, 20            small stage layout, 12–13
                            direction convention, 28        smiley face animation, 49
                            programming environment, 3      sneezing cat animation, 51–52
                            project editor, 3               SneezingCat.sb2, 51
                            website, 3                      Sort ’Em Out application, 241
                         scripts                            SortEmOut.sb2, 241
                            breaking into smaller parts, 73  sorting, 229–231
                            copying by dragging, 9          sound
                            defined, 2                         files, 10, 53
                            disassembling, 8                   volume, 55–56
                            duplicating, 33                 Sound blocks
                            running, 8                         change tempo by [20], 56
                            terminating, 8                     change volume by [–10], 56
                         Scripts Area, 7–9                     play drum [1] for [0.25] beats, 54
                         Scripts tab, 4, 9, 48                 play note [60] for [0.5] beats, 55
                         searching                             play sound [name], 53–54
                            exhaustive, 168                    play sound [name] until done,
                            linear, 226–227                          53–54
                            sequential, 226                    rest for [0.25] beats, 54
                         SearchList.sb2, 226                   set instrument to [1], 55


                                                                                     Index   259

                                           www.it-ebooks.info
   276   277   278   279   280   281   282   283   284   285   286