Scratch Programming: Scratch Is A Programming Language That Makes It Easy To Create
Scratch Programming: Scratch Is A Programming Language That Makes It Easy To Create
Scratch Programming: Scratch Is A Programming Language That Makes It Easy To Create
INTRODUCTION
CONCEPTS OF SCRATCH
1. Sprite:They are the objects that perform actions in a Scratch Project. The default sprite
is the cat (Mascot)
2. Stage:The stage is the background where all the action takes place. The stage is also
known as Canvas.
3. Script: Scripts are the set of program blocks written to apply effects on the sprite.
Each Sprite has its own set of scripts to control its behavior and how it interacts with the other sprites and ev
GETTING STARTED WITH SCRATCH
1. Motion
2. Looks
3. Sound
4. Pen
5. Data
6. Events
7. Control
8. Sensing
9. Operations
10. More blocks or user created blocks
Flags: Flags are used to execute the scripts. The green flag starts the execution whereas the red
flag stops the execution.
Blocks Palette:
It is an area of the graphical user interface located between the stage, sprite pane and scripting
area. Blocks palette display the list of blocks available under that specific category.
Sprite List: It displays thumbnail for all sprites in a project. The name of each sprite
appears below its thumbnail.
Sprite Buttons
Sprite buttons are displayed below the stage. There are many built in sprites in Scratch. The
default sprite is Cat (muscat). Following options are available on sprite buttons.
1. Choose new sprite from Library: This button helps in selecting an existing
sprite from scratch
3. Upload sprite from file: This button helps to upload a new sprite from file
4. New sprite from camera:This button is used to generate a random sprite on the
stage.
Changing Sprites
Painting a Sprite:
You can click a photo with a web camera icon to use it as your sprite.
Size of sprite can be changed through programming blocks available in Looks category.
CREATING A NEW PROJECT
MENU OPTIONS
Blocks are used for creating scripts. Let us understand, how scrips are created in scratch
using blocks.
For writing scripts, select the scripts tab from script area. Now drag the blocks from block
palette of a specific block category and place it in the script area.
Using Motion Block:
Procedure:
Procedure:
Procedure:
Example: Draw a line with pen after the user wait for 5 seconds.
Procedure:
Procedure:
Procedure:
1. Click event tab and drag the block when flagclicked in the
script area.
2. Click the pen tab and drag the block clear and then pen down
block.
3. Click the control tab and drag the block repeat in script area.
4. Change the value in repeat block to 360 degrees.
5. Click the motion tab and drag the block move (1) steps and turn
(1) degrees, the sprite displays a circle.
Practice Session:
Tab:
Sprite List: