Page 81 - TechPluse_C4_Flipbook
P. 81

The  Forever block is  used to run a set of instructions continuously until
                 stopped. The instructions inside this block will be executed in a loop until the

                 Stop button       is clicked by the user.

                 The Repeat and Repeat Until blocks can be used to display the table of a number input by
                 the user. The script for the sprite can be like this (using Repeat Until block).































                                                       Example of a looped script















                                                                Output

                     GRAPHIC EFFECTS


                 In  Scratch,  graphic effects  allow  you  to  modify  the  appearance  of  a  sprite  or  backdrop
                 dynamically. These effects can be applied using the                         and


                 blocks in the Looks category. Use the                   block to reset all applied effects to their

                 default state.
                 There are different types of graphic effects present in Scratch. Some of them are:
                 1.  color: changes the sprite's colour.





                                                                                               Game on Scratch       79
   76   77   78   79   80   81   82   83   84   85   86