Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 84 - 2501_KVS_C-3
P. 84

    Aryan: Oh Wow! Could we also change the backgrounds as per our wish through
                           scripting.
                           Gowri: Yes! Of course, dear, we can do this. Let’s learn this by next two options: -

                                                                    Fig. 8.3

                      8.3 CHANGING BACKGROUND IN SCRATCH— “LOOKS” BLOCK

                      These blocks are “stack” blocks.

                      8.3.1 “switch backdrop to…” block

                      It  is  used  to  change  the  background  of  stage  to  a  specific  background  which  is
                      chosen already.

                      8.3.2 “next backdrop” block

                      It is used to change the background to next background from the selected list of
                      backgrounds.

                      Let’s Learn this by an activity given next.

                                    Activity 8.3

                        Add a sprite of your own choice and change the background of stage after 1
                        second to next background. Repeat the process 2 times.
                        Ans:

                        Step 1:  Add a sprite “ball” from a “Choose a sprite”
                                    icon from the  “sports”  tab and remove the
                                    already added sprite “cat” from sprite list.

                        Step 2:   Click  on  “Events”  block  and  drag  “when  flag

                                    clicked” block in the script area.
                                                                                                      Fig. 8.4

                    82                         KVS DELHI REGION 2025

| 79 80 81 82 83 84 85 86 87 88 89 |