Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 86 - 2501_KVS_C-3
P. 86

    Aryan: I have created a scene having different water species with background,
                           but fishes and water species are not floating in water. And also, birds are not
                           flying in Jungle story. Please help me dear Gowri and tell me the steps, how a
                           sprite can fly and float in scratch?
                           Gowri:  Yes!  Of  course,  dear,  we  can  learn  this  now.  Let’s  learn  this  by  next
                           options:

                      8.5 “GLIDE… SECS TO…” — “MOTION” BLOCK

                      All these blocks are “stack” block.

                      8.5.1 “glide… secs to…” block

                      This block has a dropdown menu having two options:-

                      i) Random position                  ii) Mouse-pointer.

                      8.5.1.1 “glide…secs to random position”
                      This block is used to fly the sprite at random positions on stage.

                      8.5.1.2 “glide…secs to mouse-pointer”:

                      This block is used to fly the sprite in the direction of the mouse in stage.

                      8.5.2 “glide…secs to x… y…” block
                      This block is used to fly the sprite to a particular position which is also known as
                      (x,y) position.

                           Aryan: Dear Gowri,(x,y) positions! I could not understand this (x, y) position.
                           Please explain this to me.
                           Gowri:  Yes!  Of  course,  dear,  we  will  learn  this  now  with  the  help  of  an
                           Activity 8.5.

                                    Activity 8.5

                        Make  a  square  and  divide  it  in  7X7  squares  and  mark  them  with  numbers
                        (1 to 7) from both sides (horizontal and vertical sides), as shown in Fig. (8.5).
                        Now fill the square which is 5 positions away from origin in horizontal direction
                        and 3 positions away from origin in vertical direction (as shown in Fig. 8.6).

                    84                         KVS DELHI REGION 2025

| 81 82 83 84 85 86 87 88 89 90 91 |