Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 131 - 2615_KEC
P. 131

    Jump to a random location: Moves  the  sprite  to  a new,
                       randomly chosen position on the stage.

                               CREATING AN ANIMATED CHARACTER

                     Step-by-Step Guide:

                     1. Open Sprite Lab on Code.org.

                     2. Add a new sprite (choose a character).

                     3. Set the background.

                     4. Set the size of the sprite so they look the way you want.

                     5. Bring the sprite to life with behaviour.
                                          Code:                                             Output:

                            REVISIT

                          ▶ Code.org provides a beginner-friendly environment for learning programming through
                          block-based coding.
                          ▶ The space where you drag and drop coding blocks to create programs is Workspace.
                          ▶ Stage is the area where your animations and sprites appear.

                          ▶ Block-based programming is a visual way of coding where you connect pre-made code
                          blocks like puzzle pieces.
                          ▶ In Sprite Lab, you can create animations and simple games using visual coding blocks.
                          ▶ Events blocks are used to trigger actions when specific conditions are met.

                          ▶ Loops blocks are used to repeat actions multiple times, which saves time and makes code
                          more efficient by reducing repetition.

                          ▶ A sprite is a character or object in your animation which can be a person, an animal or
                          even a shape.

                                                                          Introduction to Block Programming and Animation  129

| 126 127 128 129 130 131 132 133 134 135 136 |