Page 75 - Computer - 3
P. 75

5.  Stack the Change size                            block from the Blocks palette under the
                  Think block, and set the size value to 25.


            6.  Stack the Change colour effect                                           block from the Blocks

                  palette under the Change size block and change its value to 20.
            7.  Click the top block in the stack to run the project.

           The Cat sprite says ‘Hello! My name is Kitty’, thinks ‘I can change my colour and
           size!!’, and then changes its size and colour. The images for the execution of the
           script are given below.
















          Control Blocks

          The Control blocks are used to control the scripts. These blocks are colour-coded
          orange. Some blocks in the Control blocks category are:


                 Block                                               Function

                                Pauses the execution of the script for a specified number of seconds
                                before moving to the next block in the script.


                                Repeats the enclosed stack of blocks for a specified number of
                                times.


                                Repeats the enclosed stack of blocks indefinitely until the script is

                                stopped.


                                Executes the enclosed stack of blocks if the specified condition is

                                True.




                                Executes the stack of blocks enclosed under ‘if’, if the specified
                                condition is True, else executes the stack of blocks under ‘Else’.





                                                                                                              73
   70   71   72   73   74   75   76   77   78   79   80