Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Nicola Gallop
Contents
What is Scratch? ................................................................................. 2
Stage area ........................................................................................... 4
Menu and tool options ....................................................................... 5
Scripts area ......................................................................................... 6
Palette area......................................................................................... 7
Sprites ................................................................................................. 8
Sprites in the Scratch interface ........................................................... 9
Creating and editing sprites .............................................................. 10
Naming a sprite ................................................................................. 11
Coloured blocks and scripts .............................................................. 12
Functions of blocks ........................................................................... 12
Flow of scripts ................................................................................... 14
What is Scratch?
Scratch is a visual programming language that provides a
rich learning environment for people of all ages. It allows you
to create interactive, media-rich projects, including animated
stories, book reports, science projects, games and
simulations. (Marji, 2014)
Scratchs visual programming environment enables you to
explore areas of knowledge that would otherwise be
inaccessible. It provides a full set of multi-media tools you
can use to create wonderful applications and you can do so
more easily than with other programming languages.
In many ways, Scratch promotes problem solving skills
important in all areas of life, not just programming. (Marji,
2014)
Scratch is a visual programming language that makes coding
simple. It can be used to make all sorts of fun and interesting
problems. (Vorderman, 2014)
Marji, M. (2014) Learn to program with Scratch. A visual introduction to programming with games, art, science and math.
USA: No Starch Press Inc.
Vorderman, C. (2014) Computing Coding for kids. London: Dorling Kindersley Limited.
Scratchs areas
Scratch has a few main areas that you have to work with. The first area is the
palette. This area allows you to select different blocks to start to programme
the sprite. The second area is where you drag the scripting blocks and edit
everything. The third area is the stage, where you view the action that you
have just programmed your sprite to do. In the fourth area, you select a sprite
to work on and view the basic information. The top area holds menus and
toolbars.
This is the
stage where
you can see
what
everything
looks like.
First area
Second area
Third area
Fourth area
Stage area
This is Scratches screen layout, or interface. This is the stage area. This page
demonstrates what each button does.
Click for full screen view
Menu options
Change language
Cursor tools
Program name
box
Buttons to change
the background
Menu options:
This is what the menu options at the top of the screen do.
Cursor tools:
Click on the tool you want to use and then click
on the sprite or script you want to use.
Copy a sprite or script.
Delete a sprite or script.
Enlarge a sprite.
Shrink a sprite.
Get help on a block.
Scripts area
Below demonstrates the scripts area. Each part of the scripts area is labelled
for you to become familiar with each part.
Scripts tab
Costumes tab
Sounds tab
Palette area
This is the palette area. At the top, you can select what blocks you want to
view indicated by what the button says. Below, you can drag blocks to the
scripting area to make sprites to various things. Note: puzzle piece-shaped
things mean they go above/below another block. Round or oval things (usually
with text inside them) accept numbers/values. You can either drag an oval
block into them or type a number. If there is a pull down menu, you can also
choose from that. Square areas accept text, numbers, or oval blocks. Pointy
areas accept things that are true or not true. For example, "A=B" or "touching
mouse-pointer" are a few options. Checkboxes allow its value to be shown on
the stage along with a label. Also, if you right-click on any block, whether in the
palette or in the scripting area, if you click help, a window will come up (in
Scratch) that explains what that particular block does.
Sprites
Sprites are the basic components of Scratch. Every Scratch program is made up
of sprites and the scripts that control them.
What can sprites do?
Sprites are the images on the stage. Scripts are programmed to make them do
things. Sprites can be instructed to react to other sprites and the user of the
program. Here are a few things sprites can do:
Move around the stage
Change their
appearance
10
Naming a sprite
It is easier to write programs if you give your sprites a meaningful name. It also
makes it easier to understand and manage scripts.
Select the sprite in the sprite list and then click the blue i button in
the corner.
The blue i icon
Change the name by clicking in the text box on the opened information
panel. Use your keyboard to change the name of the sprite.
Click the blue arrow to the left of the sprite to close the information
panel.
The sprites new
name appears in
the sprite list
11
Functions of blocks
Different types of blocks do different things in programs. Some make sprites
move, some manage sounds and some decide when things happen.
Events and sensing:
Brown Events blocks make things happen. Light blue Sensing blocks detect
information about the keyboard, mouse and what a sprite is touching.
12
Control:
The Control blocks make decisions about when blocks run. They can be
programmed to repeat instructions.
This makes the blocks inside it run on
loop (forever).
13
Flow of scripts
When a program runs, Scratch carries out the instructions on the blocks. It
starts at the top of the scripts and works its way down.
The instructions will start at the top
and make its way down
That is the end of the guide to the basics of Scratch. Hopefully you now feel
confident enough to move onto building a script for a sprite and then moving
to creating a game.
14