Page 65 - TechPluse_C4_Flipbook
P. 65

Block category                                           Use


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



                                         Events blocks control how the blocks in a script will start to
                          Events         run.




                                         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 control the blocks within your scripts, inserting

                         Control         conditional statements, loops, repeats and pauses.


                                         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.



                 Motion Blocks


                 They are colour-coded dark blue and are used to control the
                 sprite movement. When you click on the Motion button, you
                 will see the programming blocks that can be used with your
                 sprite for its placement, direction, rotation and movement.
                 Let’s program your sprites with some code.


                 Step 1     Click on the Motion block.

                 Step 2     Drag the “move 10 steps” block to coding area.

                 Step 3     Change the “10” to “50” by clicking in the block and typing 50.

                 Step 4     Double-click on the block in the Script area  to see your
                            sprite, move 50 pixels to the right (towards the face of the
                            sprite).




                                                                                               More on Scratch       63
   60   61   62   63   64   65   66   67   68   69   70