0% found this document useful (0 votes)
49 views

Scratch Programming (Scratch 3.0)

Uploaded by

learnict301012
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Scratch Programming (Scratch 3.0)

Uploaded by

learnict301012
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Scratch Programming (Scratch 3.

0)

Create your own games, animations, interactive


stories, and more.
Getting Started
First, you’ll need to start Scratch.

Start by launching Scratch Desktop


If Scratch Desktop is not already installed on your
computer, you will need to install it.

There are two version of the Scratch offline editor available:


Use Scratch Desktop 3.0 If your computer is running Windows 10 or
higher, or macOS 10.13 or higher.
Use Scratch 2 if your computer uses an older operating system.
If you are using Scratch 2, use the Getting Started with
Scratch 2 booklet and materials.

scratch.mit.edu

You can also use Scratch online at: scratch.mit.edu


Using scratch online requires an internet connection.
The Scratch Editor
The Scratch Editor is where you create projects in Scratch.
Here are its main parts:

Saving in Scratch Desktop


Click the File menu and select
Save to your computer. To open
a project, click Load from your
computer.
What is a Sprite?
In Scratch, any character or object is called a sprite. Every new
project in Scratch starts with the Cat sprite.
Want to choose a different sprite?

Click the New Sprite icon.

Or, hover over the “New Sprite icon to see more options.

Want to delete a sprite from your project?


First, select the sprite by clicking on its
thumbnail in the Sprite list.
Then, click here to delete the sprite.
Where is your Sprite?
Every sprite has an x and y position on the Stage.
x is the position of the sprite from left-to-right.
y is the position from top-to-bottom.
At the very center of the stage, x is 0 and y is 0.
Elements of Scratch
There are four main elements of Scratch: the stage, the sprites, the
script and the programming palette. These elements can be compared
to a play.

1. Stage – similar to the stage in a play. This is where everything


will take place. The stage can be different backgrounds, just like
in a play.
2. Sprites – are the actors or main characters of the project.
Sprites are programmed to do something in Scratch.
3. Script – tells the actors what to say or do. Each sprite is
programmed with a script.
4. Programming palette – elements used to program the
sprite to do or say something. Sprites must be programmed to
carry out every function you want them to perform.
Screen Elements or User Interface

Events blocks

Programming a sprite always begins with a control block (orange/yellow


category from the programming palette). There are three blocks that can be used
to begin programming.

1. When the green flag is clicked – The project will begin when the green
flag in the upper right-hand corner is clicked.
2. When space key is pressed – The project will begin when the space bar is
pressed. The white drop-down arrow indicates that you can choose a key
different from the space bar; and that key will begin the project.

3. When sprite is clicked – The project will begin when the sprite is click.
Note: Click the sprite on the stage, NOT the small thumbnail sprite
shown underneath the stage.

Motion Blocks

Motion blocks fall under the blue category. There are several blocks that will
allow the sprite to move. This category teaches students to understand positives
and negatives and other mathematical concepts, like degrees.

= move some steps towards the current direction

= turn right for some degrees

= turn left for some degrees

= this block cam be used to make your sprite face


different directions.

= go to any position, x is between -240 and 240, y


between -180 and 180
= move smoothly to a position on the screen
within N seconds

= always face where the mouse point is

= turn to any direction. 0 degree is facing left, 90 up,


180 right, 270 down and 360 back to left.

= move left or right by a number of steps

= move up or down by a number of steps

= test if the sprite touches the edges of the stage and if so


let it bounce off

= change the way sprite bounces off the edge:


left-right, all around or don’t rotate.

Looks Block

= show text in a box next to the sprite for some


seconds

= show text in a box next to the sprite


= show text in a box next to the sprite for
some seconds

= show text in a box next to the sprite for some seconds

= show the next costume

= show the next backdrop

= make the sprite bigger with a number>0 or smaller


with a number<0

= make the sprite bigger with a number>100 or smaller


with a number<100

= change the selected effect by certain


amount

= change the selected effect to a value, 0


means no effect.

= show the sprite

= hide the sprite


Sound Block
= play the selected song and wait till it’s
finished

= the block plays the specified sound

Control Block

= pause the program for some seconds and then continue

= run the blocks inside for a certain number of times

= run the blocks inside again and again till the red stop
button is clicked

= run the blocks inside only when the conditions are met.

= run the blocks below if when the conditions are met, or


blocks below else if not

= stop all, this script or other scripts in sprite from running


Sensing Block

= show the question text next to the sprite,


and a text box at the bottom of the stage,
waiting for inputs from keyboard
= the text entered from the keyboard

Operators Block

= test whether the first number is less than, equal to or


bigger than the second one

= attach the second word to the end of the first one

Variables

Variables are created with the “Make a Variable” button in the Block Palette.

= add (>0) / reduce (<0) the value of selected


variable by a certain amount

= set the value of a selected variable


= show selected variable on the stage

= hide selected variable on the stage

= the value of the variable

You might also like