Page 83 - iPro_trackGPT_V5_Class6
P. 83

Tech Tweak

                   You can also upload a backdrop or a sprite from the files saved on your computer.




                        Boost Bits


                  The stage is 360 pixels tall and 480 pixels wide.


                    SPRITE’S DIRECTION


                 In Scratch, a sprite’s direction refers to the angle at which the sprite is facing on the stage. This
                 direction is measured in degrees, with 0 degrees pointing upwards, 90 degrees pointing to the
                 right, 180 degrees pointing downwards, and 270 degrees pointing to the left menu.

                 You can adjust the direction of a sprite using the Turn block found in the Motion blocks pallete.
                 The               block allows you to rotate the sprite clockwise by a specified number of degrees.

                 Alternatively, you can use the                block to rotate the sprite anticlockwise, depending

                 on your needs. The number of degrees specified in the Turn block can be customised to fit the
                 requirements of your project. For example, if you set the block to turn by 15 degrees, the sprite
                 will rotate 15 degrees in the chosen direction.



                                                                                              0
                                                                                   –135               45




                                                                                –90                      90



                                                                                                      135
                                                                                    –45
                                                                                            180
                           Clockwise                 Anti-clockwise

                    UNDERSTANDING BLOCKS

                 Blocks in Scratch resemble puzzle pieces and are used to give instructions to the computer.
                 When combined, these interconnected blocks form what is known as a script, which constitutes
                 the code in Scratch. Each script represents a sequence of commands that Scratch executes from
                 top to bottom when you double-click on it.

                 To use a block, simply select it from the Blocks Palette and drag it into the Scripts Pane where
                 you build your script. If you need to remove a block, drag it away from the Scripts Pane and it
                 will be discarded. This intuitive drag-and-drop interface makes it easy to create and modify your
                 code by visually arranging blocks to define how your sprite should behave and interact.




                                                                          Scratch Programming— Game Creation     81
   78   79   80   81   82   83   84   85   86   87   88