Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 129 - 2615_KEC
P. 129

    Some common Loops block are given below:

                        Repeat X times do: The repeat X times do block in Code.org is used to execute a set
                       of instructions a fixed number of times. This loop helps reduce repetition by automating
                       tasks.

                        Count with from to by do: The count with from to by do block in Code.org is a loop

                       that iterates over a range of numbers. It starts at a specified from value, ends at a to
                       value and increments by the by value on each iteration. Within the loop, you can use the
                       counter variable to perform actions.

                               WHAT ARE SPRITES?

                     A sprite is a character or object in your animation. It can be a person, an animal or even
                     a shape. You can make it move, change appearance and interact with other sprites.

                     ADDING AND CUSTOMISING SPRITES
                     In Sprite Lab, you can:

                        Choose a sprite from the library.

                        Change its size, colour and direction.

                        Assign actions like movement and animations.

                                                                          Introduction to Block Programming and Animation  127

| 124 125 126 127 128 129 130 131 132 133 134 |