Page 74 - Touchpad_Plus_V3.2_Class3
P. 74

CREATING A SCRIPT

                  A script is another name for a program. Let’s create some scripts.
                  Example 1: Talking and jumping Sprite




                  Step 1  Drag the                  block from Events blocks menu. This block will activate

                            once the Green flag is clicked.


                  Step 2  Drag the                     block from Control blocks menu. All blocks inside


                            the forever block run until the Stop button is clicked.

                  Step 3  Now, drag and place the blocks inside the forever block as shown. Change
                            the values respectively.

                            •               will change the Sprite’s costume to the next.


                            •                   and                   will change the position of Sprite.


                            •                    will pause the script for the specified time before moving

                                to the next block.

                            •                             will display the message for the specified time.




























                   Clickipedia



                    To find out the x and y position on the stage, move the mouse around and look

                    at the values of x and y on the right corner of the stage.




               72       Plus (Ver. 3.2)-III
   69   70   71   72   73   74   75   76   77   78   79