Page 111 - CodePilot V5.0 C4
P. 111

This  block  changes  the  sprite’s  position  vertically,
                                  change y by  10   moving  it  up  (positive number) or down (negative
                                                    number).


                                                    This block makes the sprite bounce back when it hits
                                  if on edge, bounce
                                                    the edge of the screen.


                                                    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
                                    think  Hmm...
                                                    with the given text.


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


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


                                                    This block changes the stage background to the one
                     switch backdrop to  backdrop1
                                                    you 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
                                           show
                                                    was 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.




                                                                                        Scratch Coding Adventures  109
   106   107   108   109   110   111   112   113   114   115   116