Page 79 - Computer Genius Class 04
P. 79

Notes


                               The ‘X’ position can range from 240 to -240. Y position can range
                               from 180 to -180.



                                                                                      Critical Thinking
                        Quest                                                         Information Literacy



                      1.  Which block is also called a wrap block?


                      2.  Which block stops the script from functioning?






                 Direction                                                                  –15  0   15
                                                                                        –30              30
                 The words up and right are perfectly understood                   –45                       45
                 as  directions  by  human  beings.  But  the  Sprite           –60                             60
                 needs  a  number  to  indicate  the  exact  direction.
                                                                               –75                                75
                 The direction numbers are between −180 and 180
                                                                              –90                                 90
                 degrees.  Pointing  at  0  degrees  means  facing  up
                 with respect to the Sprite. Pointing at 90 degrees           –105                               105
                 is facing to the right with respect to Sprite. Also,           –120                            120
                 notice that −180 and 180 degrees point in the same                –135                      135

                 direction: down.                                                      –150               150
                                                                                           –165  ±180  165
                 Some of the commonly used motion blocks are:

                               Blocks                                          Functions

                                                      This block lets the Sprite move forward (in the direction
                           move 10   steps
                                                      it is facing).

                        turn    15   degrees          This block turns Sprite in clockwise direction.


                        turn    15   degrees          This block turns Sprite in an anti-clockwise direction.


                          go to x: 0  y: 0            This block moves the Sprite to a specified XY position.


                                                      This block changes position of Sprite on X-axis according
                             set x to 0
                                                      to the specified position.
                                                      This block changes position of Sprite on X-axis by specified
                           change x by 10
                                                      number of steps.


                                                                                           Blocks in Scratch   77
   74   75   76   77   78   79   80   81   82   83   84