Page 128 - TGPT_V5.0_C5_Flipbook
P. 128

The three relational operators are:





                                                             greater than





              Similarly, you  can  use the  other blocks  to perform less than                        and  equals  to
                            .



                   MOTION BLOCKS


              The Motion block in Scratch contains all the blocks that control how a sprite moves around the

              stage. These blocks are essential for creating animations, interactive games, and controlling
              sprite movement. Some of the motion blocks include:


                                              block allows a sprite to move smoothly from one point to another
                 over a set period of time.

                                      block is used to move the sprite to a specific location on the stage. The x

                 and y values correspond to the coordinates on the stage, where x is the horizontal axis (left
                 and right) and y is the vertical axis (up and down).

                                    block makes a sprite face a specific direction. The direction is given in

                 degrees, where 0° is facing up, 90° is right, -90° is left, and 180° is down.
              These blocks let you make sprites move, change directions, glide smoothly, and more.


              To use these blocks in a script, follow the given steps:
































                  126  Premium Edition-V
   123   124   125   126   127   128   129   130   131   132   133