Page 82 - 2606_PlugGPT_C3_Flipbook
P. 82
CREATING A SCRATCH PROJECT PROJECT 2: CREATING A SCENE
Create the given script and run it by clicking on the Green flag button.
As you know, a sprite is controlled by a list of instructions known as code or script.
We create scratch programs by putting code blocks together. Let us create some
projects in Scratch. Programs are written in Scratch to move sprites in x and y when clicked
coordinates on the stage area. move 10 steps
turn 30 degrees
PROJECT 1: MOVING A SPRITE say I am a snowman
To move a sprite around the stage, we need to learn how to work with Motion
blocks. A sprite can be moved a few steps ahead or turned by different angles. Let
us now create a project that instructs a sprite to move. SAVING A PROJECT 1 Click on the
File menu.
Step 1 From the Events block, drag a when clicked block. To save a project before closing
Step 2 From the Motion block drag a move 10 steps block. the Scratch window, follow the
given steps:
Step 3 Click on the number box and change it to move 50 steps (The number 2 Select the Save to
determines how far across the screen you want the sprite to move.) your computer option.
Step 4 Drag a turn 15 degrees block. The sprite will rotate 15 degrees
clockwise. (To change the angle of turn, change the number of degrees
and then click on the block to make the sprite turn.)
Step 5 Now, click on move 10 steps and change it to move 50 steps
Step 6 Click the to run your program.
when clicked
move 50 steps 3 In the File name 4 Click on the
turn 15 degrees box, type the desired Save button.
move 50 steps name for your file.
The extension of a Scratch 3.0 project file is .sb3.
Fill in the blanks.
uiz Bee 1. ______ is the default sprite in Scratch. Suppose, you have to code an environmental conservation game in Scratch where
2. ______ blocks are used to control the movement of a Sprite. players work to protect endangered species and preserve ecosystems. What
environmental challenges they tackle and how they make a positive impact?
80 Premium Edition-III

