Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 76 - 2505_CoreGPT(Podar)_Flipbook_C3
P. 76

    BLOCKS IN SCRATCH

                      Blocks are puzzle piece shapes that are used to give instructions to the computer.
                      A collection of inter-locked blocks, called script make a code in Scratch. When you

                      click on the Script, Scratch runs the blocks from top to bottom.
                      To use a block, simply select it and then drag it onto the scripts pane.

                      To remove a block from a script, just drag it to the left, away from the scripts
                      pane.

                      Some of the  common categories  of blocks are:  Motion,  Looks,  Sound, Pen,
                      Variables, Control, Sensing and Operators.

                       Block category                                            Use
                                             These blocks are used to place your sprites on the stage or

                              Motion         move them.

                                             These blocks control what your sprites and backdrop look like.
                              Looks

                                             These blocks are used to play or stop sounds.
                              Sound
                                             These blocks are  used to draw  shapes and  patterns  on the
                               Pen           stage, change the pen colour and size.

                                             These blocks add  controls and  events to scripts; using the
                                             when flag clicked block lets you start the animation with the
                              Control
                                             flag icon.
                                             These blocks identify what's happening at a given point and

                             Sensing         make your sprites or background respond to user actions.
                                             These blocks let you make comparisons between or perform

                            Operators        arithmetic functions on different values.

                            WORKING WITH A SCRIPT

                      A script is another name for a program. Let’s create some scripts.
                      Example: Talking and Jumping Sprite

                      Step 1  Drag the                 block from Control blocks menu. This block will activate

                                once the Green flag is clicked.

                      Step 2  Drag the                     block from Control blocks menu. All blocks inside

                                the forever block run until the Stop button is clicked.

                     74     Premium Edition-III

| 71 72 73 74 75 76 77 78 79 80 81 |