Page 18 - codeing world
P. 18

Introducing Scratch




                                   Test  your  code  regularly,  to  make  sure  your  code  does
                                   what  you  want  it  to.  You  will  find  it  much  easier  to  fix

                                   problems in your code if you test each time you make a

                                   change to your code.



                                   Get  others  to  try  out  your  projects,  and  ask  them  what
                                   they  like  about  your  project  and  what  they  would

                                   improve.



                                   You can add comments to a script by right-clicking on a
                                   block  and  selecting  add  comment.  It’s  a  good  idea  to

                                   comment a script to explain what it does, so that others
                                   will know what your scripts do. It’s also useful in case you

                                   forget what your code does!

























                                                                           To  delete  blocks,  drag  them

                                                                           over  the  palette  area.  Don’t
                                                                           worry  if  you  accidentally

                                                                           delete  blocks  you  need:  you
                                                                           can  click  the  File  menu  and
                                                                           then  undelete  to  get  them

                                                                           back!

                                                                           You can right-click on a block
                                                                           and choose duplicate to make

                                                                           a  copy  of  that  block  and  the
                                                                           blocks attached below it.
   13   14   15   16   17   18   19   20   21   22   23