Page 72 - 2616_V iCode_C-4
P. 72

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

                                                       range from 180 to -180.

                  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  degrees.  Pointing at  0  degrees  means                –90                                   90
                  facing up with respect to the Sprite. Pointing at            –105                                 105
                  90 degrees is facing to the right with respect to
                                                                                –120                              120
                  Sprite. Also, notice that −180 and 180 degrees
                                                                                    –135                        135
                  point in the same direction: down.
                                                                                        –150                150
                                                                                            –165  ±180  165
                  Some of the commonly used motion blocks are:


                                Blocks                                          Functions

                            move 10   steps            This  block  lets  the  Sprite  move  forward  (in  the
                                                       direction 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.

                               set x to 0              This  block changes  position  of Sprite  on X-axis
                                                       according to the specified position.

                            change x by 10             This block changes position of Sprite on X-axis by
                                                       specified number of steps.


                  Looks Blocks


                  Looks blocks are  purple in  colour  and  let  you  modify  the  Sprite’s costumes  and
                  colours. The Looks blocks display text within pop-up bubbles.


                                Blocks                                          Functions
                      say Hello!  for 2   seconds      This block displays a speech bubble of the Sprite for

                                                       a specified amount of time.


                       70    Premium Edition-IV
   67   68   69   70   71   72   73   74   75   76   77