Page 88 - Trackpad_ipro 4.1_Class6
P. 88

CREATING SOME MORE PROGRAMS

                  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 the Events block menu. This block will activate once the

                          green flag is clicked.

                  Step 2  Drag the                 block from the Motion blocks menu to set the initial position of
                          the sprite.

                  Step 3  Drag the               block from the Control blocks menu. All blocks inside the Forever

                          block run until the Stop button is clicked.

                  Step 4  Now, drag and place the blocks inside the Forever block as shown. Change the values
                          respectively as shown in the final script.

                                      will change Sprite’s costume to the next.

                                        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.














































                    86     iPro (Ver. 4.1)-VI
   83   84   85   86   87   88   89   90   91   92   93