Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 81 - 2629_Devagiri_C-5
P. 81

    BRIDGE BACK

                       Tick  (  ) the block that makes a sprite repeat an action forever.

                                repeat until                                                   repeat  10
                                                               forever

                     In your previous class, you learnt different types of blocks and how to create custom

                     sprites and costumes. In this chapter, you will learn how to make a project with
                     multiple sprites, broadcast messages between them, tell stories, create games and
                     even use AI in Scratch.

                            WORKING WITH MULTIPLE SPRITES

                     You  can create  projects  that  feature  multiple  sprites.  Each  sprite  can be  coded
                     separately allowing you to bring your project to life with fun interactions. Let’s create

                     an exciting project  with two sprites  that  combines  movement  and sound using
                     Scratch blocks. To create a project with two sprites, follow the given steps:

                     Step    1    Choose  multiple  animal  sprites
                                  from the Scratch library.

                     Step    2    Select a jungle-themed backdrop

                                  to create a natural environment.

                     Step    3    Change the size and position of
                                  the sprites from the Sprite Info

                                  Pane.

                     Step    4    Click the Lion sprite and create
                                  the given script.

                                                        when    clicked

                                                        play sound  grunt  until done

                                                        glide  1  secs to x:  50  y:  30

                                                                                                    Scratch Meets AI   79

| 76 77 78 79 80 81 82 83 84 85 86 |