Introduction To Scratch Programming
Introduction To Scratch Programming
Elements of Scratch
There are the following four main elements of Scratch and they are:
1. Programming Palette
2. Stage Area
3. Sprites
4. Script
Programming Palette / block palette
It contains all the essential tools which are required to program a sprite to do or say
something. Every element of a program, such as a loop, condition available in the
programming palette.
Blocks
It contains puzzle-piece shapes that are used to create code in Scratch. These blocks
are connected to each other vertically like puzzle pieces. Every block has its own
shape that prevents syntax errors. Once these blocks are connected, they are called
scripts. These are the following six different shapes available in Scratch: Hat, Stack,
Boolean, Reporter, C, and Cap.
Stage Area
This is a place where everything takes place, such as animations, turtle graphics
either in a small or normal size, with a full-screen option also available. It uses X and
Y coordinates to monitor action with 0, 0 being the stage center. All the action by a
sprite is performed here.
Sprites
These are the main characters of the program. It is a graphical element that is
programmed using a programming palette. All the action is performed on the
sprites. By default, with a cat avatar display on the sprite panel, users can also draw
their own sprite.
Script
In the script, everything defines what kind of operation should be done by sprites. It
tells the characters what to do or say. Every single sprite is programmed with a
script.
Step 3: Once downloading will be done double click on the downloaded executable
file (.exe) as shown in the image below, double-click.
Once the installation process is done search scratch in your application list and
opens it.
Step 3: After completion of script, click on the green flag execution button to
execute your program, and your cat moves 100 steps with a meow sound.
Advantages of scratch
Disadvantages of scratch
• Scratch is open so anybody on the internet can get your work without
your permission.
• Teachers can not monitor what student is creating in the scratch.