Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 91 - 2609_Logiccode
P. 91

    This block  makes  the  sprite  point  towards  a specified
                          point towards  mouse-pointer
                                                        direction (e.g., North) or another sprite.

                               LOOKS BLOCKS

                     Looks blocks let you change how your sprite appears. You can use them to make your
                     sprite talk, switch costumes, adjust its size or add special effects. Some of the commonly

                     used Looks blocks and their descriptions are as follows:

                                                         This block makes the sprite show a thought bubble with
                                        think  Hmm...
                                                        the given text.

                                                        This block changes the sprite’s look by switching it to the
                          switch costume to  costume2
                                                        selected costume.

                                          next costume  This block changes the sprite to its next costume in order.

                                                        This block changes the stage background to the one you
                         switch backdrop to  backdrop1
                                                        choose.

                                                        This block  changes the stage  to  the next backdrop  in
                                         next backdrop
                                                        order.

                                                        This block makes the sprite appear on the stage if it was
                                               show
                                                        previously hidden.

                                               hide     This block makes the sprite disappear from the stage.

                     Let’s create a project using Events, Motion and Looks blocks.

                     To create a project, follow the given steps:

                     Step  1    Add Batter sprite.
                     Step  2    Add Baseball 1 backdrop.

                     Step  3    Create the given script for the sprite Batter and click the Green Flag to run the

                              project.

                                                                                             Scratch Coding Adventures  89

| 86 87 88 89 90 91 92 93 94 95 96 |