LET’S
START
SCRATCH
SESSION 2
OBJECTIVES
* What is Scratch?
* Sprite
* Starting Scratch
• Scratch Window: The Bar and Block
• Description
You are going to
create
your own
games,stories
and
animations
What Is Scratch?
⮚ Scratch is a computer programming language developed by Lifelong
Kindergarten Learning group.
⮚ It was introduced in the year 2007 with the aim of teaching programming
in a fun and interactive manner to students.
⮚ It was released on January 2, 2019.
SPRITE
⮚ A Scratch project is made up of objects called SPRITES.
⮚ A Sprite is a graphic element that can be moved, shrunk, grown, and so
on.
⮚ It can be a ball, a butterfly, or an animal.
SPRITE
You can give instructions to a sprite to make it move or play music or react to
other sprites.
To instruct a sprite to do something, you snap together graphic blocks into
stack called SCRIPTS.
When you click on a script, Scratch runs blocks from the top to the bottom of
the script.
STARTING SCRATCH
In this chapter, we will be using Scratch version 3.0.
This version is available online from the website
http://scratch.mit.edu
To access this website, enter the website address given above in any of the
browser.
How to download (Offline)
https://scratch.mit.edu/download
The home page appears as shown below:
On this page click Create.
The Scratch window appears as below:
SCRATCH WINDOW
The Scratch window has the following parts:
- The Bar
- Block Description
- Blocks Palette
- Current Sprite Information area
- Sprite List
- Coding Area
- Stage
The Bar
The Bar contains the following options:
1. The Globe icon is used to change the language.
2. The file menu has options to start a new project, load a project from
your computer and save a project to your computer.
3. The Edit menu has options to Restore.
4. The Tutorial option is used to get access of various tutorials on Scratch
3.0.
Block Description
The Block Description area contains 9 categories of blocks:
1. Motion
2. Looks
3. Sound
4. Events
5. Control
6. Sensing
7. Operators
8. Variables
9. My Blocks and
Add Extension button
Block description and
blocks palette
Block Description
Blocks Palette
OBJECTIVES
? Current sprite information
- X and Y coordinates
- Direction
- Size
- Show
- Sprite list: Adding a sprite
Current sprite information
X and y coordinates
The x and y co-ordinates
show the current position of
the sprite on the screen.
Direction
?The sprite’s direction indicates
in which direction the sprite will
move when it runs a move block.
?The default value is 90.
?You can either type the value
or drag the direction pointer
using the mouse(figure).
Size
You can change the size of a sprite by
changing the value in the Size box. The
default value is 100.
Show
It has two options- Show and Hide. Using these
two options we can make the sprite appear or
disappear from the screen.
Sprite list
? The Sprite list appears below the sprite
information area. Figure shows one sprite and one
backdrop.
? To select a sprite, just
click in the Sprite List
or double click on the
Stage. The selected
sprite is outlined in blue
in the Sprite List.
Adding a sprite
The default sprite when you open Scratch is
the cat, which has two costumes and one pre-loaded
sound.
There are four ways to add a sprite to
a project:
? Choose a sprite
? Paint
? Surprise
? Upload Sprite