Page 55 - PlusGPT_V2.1_C1_Flipbook
P. 55

Tech Hint

                     In Scratch, each number is equal to 1 step  of the sprite on the stage. In the turn block,
                     change the degree from 15 to 90.




                       FOREVER BLOCK


                 Forever block is used to make the sprite do something infinitely (nonstop) until a command is passed
                 over it by the user. To use the Forever block, replace the repeat block with a forever block. Create the
                 following Script and Run to watch your Sprite go round and round!


                                                                                    when  clicked
                              Let’s practice                                            pen down

                                                                                    forever
                                Open Scratch.  Create  a script  using                move 100    steps
                                sensing block and conditional block where             turn   90  degrees
                                a penguin ask questions to a bear.




                        PROGRAMS IN SCRATCH


                 Create these scripts and get the output.
                                 a.                                        b.




























                       SENSING BLOCKS


                 Sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of execution
                 of a script.




                                                                                              Scratch Programming  53
   50   51   52   53   54   55   56   57   58   59   60