Page 25 - Super Scratch Programming Adventure -1st Edition
P. 25

Click these buttons above
                     the Stage to start (  ) and
                     stop ( ) the game.













          Next, click the Pen palette
          and drag out the four green
          Pen blocks shown on the
          right. Now when Scratchy
          moves, he’ll draw the magic
          star web as well!





















                                           Uh-oh!           Occasionally, when you run your
                                            There’s
                                                            program, there is a software bug. This
                                             a bug!
                                                            is the most exciting part of computer
                                                            programming: discovering an error
                                                            in something you have made and
                                                            then solving the problem. In this case,
                                                            sometimes Scratchy will draw an odd
                                                            line at the beginning of the program.
                                                            If we drag Scratchy anywhere else
                                                            on the Stage, he draws an extra line
                                                            because he starts in the wrong place.
                                                            Try dragging Scratchy around and
                                                            running the program multiple times
                                                            by clicking    to see if you can spot
                                                            the bug.



                                                24
   20   21   22   23   24   25   26   27   28   29   30