Page 62 - 2619_PlusGPT V2.1_C-6
P. 62

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
                                       pen down                       Let’s PraCtiCe
                                   forever                              Open Scratch.  Create  a script  using
                                     move 100    steps
                                     turn    90  degrees                sensing block and conditional block where
                                                                        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.




                  60    Premium Edition-VI
   57   58   59   60   61   62   63   64   65   66   67