Page 40 - 2501_KVS_C-4
P. 40

number (say 10) to float the fish slowly to a random position. There is no
                             need for a “repeat” block in this sprite as, this sprite will automatically stop
                             floating when first sprite touches with this sprite due to “stop all” block.

                  Step 11:  As we click on the “flag” now, both fishes float continuously but when they
                             touch each other, a sound plays and both stop floating. (See codings in
                             Fig. 3.7 and 3.9).


























                             Fig. 3.7: Script on first sprite “Fish”                       Fig. 3.8


























                          Fig. 3.9: Script on second sprite “Fish2”                   Fig. 3.10



                                Activity 3.5

                    1.       Create  a  project  having  two  flying  sprites.  Fly  them  continuously  until

                           both touches each other.
                    2.       Create  a  project  in  Scratch  showing  a  cat  walk  10  times,  when  flag  is

                           clicked.


                38                         KVS DELHI REGION 2025
   35   36   37   38   39   40   41   42   43   44   45