0% found this document useful (0 votes)
255 views15 pages

Introduction To Scratch BRIGHTCHAMPS

This document provides an introduction to Scratch, a programming language developed by MIT. It explains that Scratch allows users to create interactive stories, games, art and share their creations online. It describes what a program is and how to access and create an account on the Scratch website. It outlines the benefits of creating an account and how to share projects. It also describes the main parts of the Scratch programming environment including sprites, stages, blocks, and scripting areas. It provides details on adding sprites and backdrops to the stage and explains more about the stage and its coordinate system. Finally, it covers the different block shapes in Scratch and provides a list of the block categories.

Uploaded by

Sunita Mourya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
255 views15 pages

Introduction To Scratch BRIGHTCHAMPS

This document provides an introduction to Scratch, a programming language developed by MIT. It explains that Scratch allows users to create interactive stories, games, art and share their creations online. It describes what a program is and how to access and create an account on the Scratch website. It outlines the benefits of creating an account and how to share projects. It also describes the main parts of the Scratch programming environment including sprites, stages, blocks, and scripting areas. It provides details on adding sprites and backdrops to the stage and explains more about the stage and its coordinate system. Finally, it covers the different block shapes in Scratch and provides a list of the block categories.

Uploaded by

Sunita Mourya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Introduction to Scratch

In this section, we will introduce you to Scratch, a programming language developed at the MIT
Media Lab in the United States that has captured the imagination of children everywhere.
Scratch makes it easy for users to create their own interactive stories, animations, games,
music, art and to share these creations on the web.

What is a program? 
A program is a set of instructions that tells a computer or other electronic device what to do.
These instructions or commands are written in an artificial (i.e. nonspeaking) language. The
script used is often referred to as code or computer code. Computer programming or coding is
the process of writing code.

To access the Scratch website: 


Type into the web address bar http://scratch.mit.edu 

Creating scratch account:-


If you do not already have an account, click on Join Scratch on top right hand corner and then
fill the details-

Reasons of creating scratch account:-


Creating an account has many benefits, including:

 Being able to save, share, and remix projects


 Love, favourite, and comment on projects
 Use the forums
 Participate in community activities

Share projects on Scratch:-


You can share your projects only if you confirm your email address after creating account on scratch.
How to confirm email address?

1. Go to the "Email Tab" in your Account Settings page on the Scratch Website.


2. If you created your account after the update, the email is already sent. If not, click
"Send".
3. Log into your email account
4. You should find your email asking you to confirm. Click "Confirm my email address".
 Not If you cannot find the email, it might be possible that the email might be in your spam folder. If
e: you still can't find it, choose to send the email again.

In the project editor, in the top-right corner adjacent the project page button is a "Share" button(as in
image below) which appears for an unshared project. Clicking this will share the project.

When a project is shared, it becomes publicly viewable to all Scratchers, even if not signed in. Once a
project is shared, it becomes possible for anyone to remix the project.

Parts of Scratch Programming Environment:-

Sprite -  Sprite is nothing but a character/object of an animation or a game. It can be a girl ,boy, fruit,
ball, etc.

Stage - This is where you happen to see all the action based on the instructions we give the sprite.
This will help you to observe if you are developing the game in the right direction or if any of the
instructions given are not correct.

Blocks - These are the instructions given to the sprite. As you can see, these instructions are in
english like ‘Move 10 steps’, ‘Go to random position’ etc.., However, the blocks consist of the computer
language to translate the English into the required instruction to develop the game 

Scripting/code area - This is where you need to provide all the instructions to develop the
game.  
   
Adding sprite and backdrop on stage:-
Choose a backdrop from the library, or if you want to, you can create your own.
Similarly choose a sprite from the library, or if you want to, you can create your own.
More about stage

The Stage is the term for the background of the project. A stage has some restrictions as compared
to sprites. Features of stage:
 A Stage is stationary, thus,
 Cannot use Motion Blocks
 Cannot use any Pen functions, other than Clear
 Has no size blocks
 Has no “touching” blocks in the Sensing category
 Has no “distance to” block in the Sensing category
 Cannot talk, thus,
 Has no “Say” or “Think” blocks in the Looks category
 When asking, places the question above the text box rather than in a
speech bubble.
 Has backdrops instead of costumes
 Cannot be renamed
 Has no “show” or “hide” blocks in the Looks category
 Cannot change layers — it is always at the very back layer.
 Must have a 480×360 dimension
 Space in backgrounds left transparent becomes white automatically
 Stage in Scratch has a 2D coordinate system which uses 2 coordinates, “X position” and “Y
position”, to determine the location of a sprite on the stage. The “X position” value
determines the horizontal location of the sprite and the “Y position” value determines the
vertical location or height. The screen is a 480×360 rectangle, such that: the X position can
range from 240 to -240, where 240 is the rightmost a sprite can be and -240 is the leftmost,
and the Yposition can range from 180 to -180, where 180 is the highest it can be and -180 is
the lowest it can be. The coordinate system is shown in the figure given below.

Co-ordinates of the stage:-


The screen is divided into X (horizontal) and Y (vertical) coordinates based on the centre of the
screen being (X)0 (Y)0 and the numbers being positive or negative depending on their
positioning.
Block Shapes:-
There are six different block shapes: Hat, Stack, Boolean, Reporter, C and Cap.

Hat blocks

The shape of a Hat block.

Hat blocks are the blocks that start every script. They are shaped with a rounded top and a bump at
the bottom — this is so you can only place blocks below them. There are 11 Hat blocks in the Scratch
editor, six of which are in the Events category, one in the Control category, and one in the
category My Blocks (if one has created one custom block).

Stack blocks

The shape of a Stack block.

Stack blocks are the blocks that perform the main commands. They are shaped with a notch at the
top and a bump on the bottom — this is so blocks can be placed above and below them. There are
77 Stack blocks — the most common block shape.

Boolean blocks
The shape of a Boolean block.

Boolean blocks are the conditions — they are either true or false. For example, asking a computer:
"Does 2 + 2 = 4?", and it would either tell you "True" or "False". With a hexagonal shape, there are 13
of these blocks.

Reporter blocks

The shape of a Reporter block.

Reporter blocks are the values. Reporter blocks can hold numbers and strings. It is like asking a
friend, for example, "What is 2 + 2?", and they would answer "4". It can also report a variable. For
example, "What is your age?" and they may answer: "15". Shaped with rounded edges, there are 37
of these blocks — not counting the theoretically infinite amount of Reporter blocks that can be made
for each variable and list.

C blocks

The shape of one of the C blocks.

C blocks are blocks that take the shape of "C's". Also known as "Wrap blocks", these blocks loop the
blocks within the Cs or check if a condition is true. There are five C blocks, and they can be found in
the Control category. C blocks can be bumped at the bottom, or capped.

Cap blocks

The shape of a Cap block.

Cap blocks are the blocks that end scripts. They are shaped with a notch at the top and a flat bottom
— this is so you cannot place any blocks below them. There are two Cap blocks which can both be
found in the Control category.

List of blocks:-
There are 119 blocks in Scratch 3.0 (not including extensions ):
Motion blocks
Motion blocks are the blocks that control a Sprite's movement. There are 17 Motion blocks in Scratch
3.0.
Scratch 3.0 has the following three Motion Reporter blocks:

Looks blocks

Looks blocks are the blocks that control how a sprite looks. There are 23 Looks blocks in Scratch
3.0. Three of the 19 sprite Looks blocks have a counterpart for the Stage.
Scratch 3.0 has the following eighteen Looks Stack blocks:
Sound blocks

Sound blocks are the blocks that control sound. There are 16 Sound blocks in Scratch 3.0. The note
blocks in 3.0 have been moved to the Music Extension.
Scratch 3.0 has the following eight Sound Stack blocks:
Events blocks

Events blocks are blocks that control events and the triggering of scripts. There are 8 Event blocks
in Scratch 3.0.
Scratch 3.0 has the following six Event Hat Blocks:
Control blocks

Control blocks are the blocks that control scripts. There are 11 Control blocks in Scratch 3.0.
Scratch 3.0 has the following one Control Hat block:

Sensing blocks
Sensing blocks are the blocks that detect things. There are 21 Sensing blocks in Scratch 3.0.
Scratch 3.0 has the following three Sensing Stack blocks:

Operators blocks

Operators blocks are the blocks that perform math functions and string handling. There are 18
Operators blocks in Scratch 3.0.
Scratch 3.0 has the following seven Operators Boolean blocks:
Variables blocks
Variables blocks are the blocks that hold variables and lists. There are 5 Variables blocks and 11 list
blocks in Scratch 3.0.
Scratch 3.0 has the following four Variables Stack blocks:
List blocks are the blocks that manage lists. They are located in the Variables category and are not
found in the bar to the left. There are 11 List blocks in Scratch 3.0.
Scratch 3.0 has the following six List Stack blocks:

My Blocks
My Blocks are user-made custom blocks. There are 4 unique kinds of My Blocks in Scratch 3.0.
Scratch 3.0 has the following My Blocks Hat block:
   
Other than all these categories of blocks there are extensions also.

You might also like