Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 108 - 2607_Trackpad_Pro_5.1_flipbook_C4
P. 108

    when    clicked
                          when     clicked
                                                                                pen down
                                pen down
                                                                                set pen color to
                           repeat  4
                                                                                set pen size to  5
                            move 100  steps
                                                                          move  50  steps
                            turn    90  degrees
                                                                          turn    90  degrees

                      Drawing A Circle
                      To draw a circle, create the given script in Scratch.

                       when  clicked
                           pen down

                           set pen size to  5                                        The circle is the only shape with a
                                                                                             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
                                    move 100  steps                    by right-clicking on it and choosing the
                                                                       Delete  Block  option  from the  context
                                    turn  90  degrees
                                                                       menu.

                      106   Premium Edition-IV

| 103 104 105 106 107 108 109 110 111 112 113 |