Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 94 - 2612_Digimind
P. 94

    when  clicked
                           pen down
                                                                                     The circle is the only shape with a
                           change pen size by  5                                             constant width.
                       repeat  360
                        move  1  steps

                        turn  1  degrees
                            change pen  color  by  5

                                                                                                            PURE
                            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.                                     FACT

                      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                     Subject: Deleting a block

                                    forever                          We can delete any block from the script
                                                                     by right-clicking on it and choosing the
                                      move 100  steps
                                                                     Delete  Block  option  from the  context
                                      turn  90  degrees              menu.

                      WAIT BLOCK

                      This block makes the script wait for the number of seconds specified by us, before the
                      next  block  follows. Sometimes,  it  is  important to  use  the  Wait  block
                                                                                                           wait  1  seconds
                      otherwise,  the  movements  would  occur  so  quickly  that  it  would  be
                      difficult to observe them.

                          Tick ( ) if you know this.
                          ▶   Forever block is used to make the sprite do something infinitely (nonstop) until a
                             command is passed over it by the user.

                          ▶  Pen down block places the pen in the down position.

                       92   Premium Edition-IV

| 89 90 91 92 93 94 95 96 97 98 99 |