A.all Blocks of Scratch 0
A.all Blocks of Scratch 0
Scratch has over 100 coding blocks, and each one has a unique use. They are all colour-coded into 9
different categories as seen below:
You can also create your own block under More Blocks.
For example, you may create a block called spin as this:
Keep in mind that all blocks can be used for Sprites, but only some can be used for Backdrops.
Here you can find all blocks in Scratch. They are organized into tasks that can be done, and
sections that use the same colours as those used in Scratch.
= go to any position, x is between -240 and 240, y between -180 and 180
= turn to any direction. 0 degree is facing left, 90 up, 180 right, 270
down and 360 back to left.
= 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.
= show text in a rectangle box next to the sprite for some seconds
= show text in a rectangle box next to the sprite for some seconds
84
I want to control how sprite is showing on stage…
= 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
= set volume to a percentage: less loud < 100, louder > 100
tempo is the speed at which Scratch plays notes and drums. It is measured as beats per minute, for
example if tempo = 60, it means 1 beat equals to 1 second.
= set pen color to be the one anywhere on the screen by clicking the area
Color value = 0 + 9 = 9
Color value = 40 + 4 = 44
I want the sprite or backdrop to do something when mouse is clicked or key pressed…
= attach blocks you want to run when the green flag is clicked
= attach blocks you want to run when the left mouse button is
clicked at this sprite
I want to let other sprites or backdrop know when a sprite has done something …
= run the blocks inside again and again till the red stop button is clicked
= run the blocks inside till the specific conditions are met
= 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
89
I want to use clones of a sprite …
= the first block for all other blocks that are to control a clone
= show the question text next to the sprite, and a text box at
the bottom of the stage, waiting for inputs from keyboard
= the value of current year, month, date, day of week, hour, minute and
second of now
= basic maths
= a whole collection of math functions that can be selected from the list
= get the remainder of the first number when it’s divided by the second one
= it is only true when both first and second conditions are met
In Scratch 2.0, you can connect external hardware like PicoBoard, LEGO WeDo 1.0 and 2.0, and make
programs to control motors, sensors and lights in the real world. This is done through Extension.
WeDo makes your LEGO® model move and fly! It comes with a set of 280 pieces of bricks, 1 smart hub,
1 motor, 1 motion sensor and 1 tilt sensor. You can build great Scratch program to read sensors and
control motor.
The LEGO® WeDo 2.0 also comes with self-paced learning software (can to be installed on laptop or
tablet) which includes:
• 1 Get Started Project, divided in 4 parts, to teach the basic functions of WeDo 2.0
• 8 Guided Projects linked to curriculum standards, with step-by-step instructions
• 8 Open Projects linked to curriculum standards, with initial design brief that inspires open-ended
problem solving and exploration.
Check our web site for future resources on LEGO® WeDo 2.0!
92