Page 122 - KEC Khaitan C5 Flipbook
P. 122
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.
120 Premium Edition-V

