Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 90 - 2609_Logiccode
P. 90

    Some of the commonly used event blocks with their descriptions are as follows:

                                                          This block starts the script when the green flag is clicked.
                                       when     clicked
                                                         It is often used to begin a project.

                                                          This block starts the script when the backdrop changes
                     when backdrop switches to  backdrop1
                                                         to a specified one.

                                                                                                          PURE
                                   There are 7 Hat and 2 Stack blocks in the Events Block category.       FACT

                                MOTION BLOCKS

                      Motion blocks let you control your sprite’s movement. You can use them to make your
                      sprite move, rotate or glide in any direction you choose. Some Motion blocks need values
                      for coordinates  and directions.  Some  of the commonly  used  Motion  blocks  and their

                      descriptions are as follows:

                                                         This block  instantly  moves  the  sprite  to  a  specified

                                go to  random position   location, which can be that of another sprite, the mouse
                                                         pointer or a random location.

                                                          This block instantly moves the sprite to a specific location
                                    go to x:  0  y:  0
                                                         (x, y) on the screen.

                                                          This block makes the sprite move smoothly to a specified
                        glide  1  secs to x:  0  y:  0
                                                         location (x, y) over a set number of seconds.

                                                          This block  changes  the  sprite’s  position  horizontally,
                                       change x by  10   moving it to the right (positive number) or left (negative
                                                         number).

                                                          This block changes the sprite’s position vertically, moving
                                       change y by  10
                                                         it up (positive number) or down (negative number).

                                                         This block makes the sprite bounce back when it hits the
                                       if on edge, bounce
                                                         edge of the screen.

                       88   Premium Edition-IV

| 85 86 87 88 89 90 91 92 93 94 95 |