The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by permadhi, 2020-11-10 23:57:30

The Official Scratch Jr Book

The Official Scratch Jr Book

Keywords: Official,Scratch,Jr,Book

Appendix B

Block Reference

Here’s a breakdown of all the blocks that are available in
ScratchJr and what they do.

Triggering Blocks

Block Name Description
Starts the script when the Green
Start on Flag is tapped.
Green Flag

Start on Starts the script when you tap the
Tap character.

Start on Starts the script when the character
Bump is touched by another character.

Start on Starts the script whenever a mes­
­Message sage of the specified color is sent.

Send Sends a message of the specified
­Message color.

134

Reference Guides

Motion Blocks

Block Name Description
Moves the character a specified
Move Right number of grid squares to the right.

1 Moves the character a specified
number of grid squares to the left.
Move Left
Moves the character a specified
1 number of grid squares up.

Move Up Moves the character a specified
number of grid squares down.
1
Rotates the character clockwise a
Move Down specified amount. Turn 12 for a full
rotation.
1 Rotates the character counter­
clockwise a specified amount.
Turn Right Turn 12 for a full rotation.
Moves the character up a specified
1 number of grid squares and then
down again.
Turn Left Resets the character’s location to
its starting position. (To set a new
1 starting position, drag the character
to the location.)
Hop

1

Go Home

135

Appendix B

Looks Blocks

Block Name Description
Shows a specified message in a
Say speech bubble above the character.

hi Increases the character’s size.

Grow

2

Shrink Decreases the character’s size.

2

Reset Size Returns the character to its
d­ efault  size.

Hide Fades out the character until it is
invisible.

Show Fades in the character until it is
visible.

Sound Blocks

Block Name Description
Pop Plays a “pop” sound.

pop Plays a sound recorded by the user.

Play
R­ ecorded
1 Sound

136

Reference Guides

Control Blocks

Block Name Description
Pauses the script for a speci­
Wait fied amount of time (in tenths of
­seconds).
10 Stops all of a character’s scripts on
the page.
Stop
Changes the rate at which certain
Set Speed blocks are run.

Repeat Runs the blocks inside its loop a
specified number of times.
4

End Blocks

Block Name Description
End Indicates the end of the script
(but does not affect the script in
Repeat any way).
­Forever
Runs the script over and over.

Go to Page Changes to the specified page of the
2 project.

137

Appendix B

Paint Editor Reference

You can use the paint editor to draw your own characters and
backgrounds or to customize existing ones.

Undo the Redo the most Save changes
most recent recent Undo. and leave the
paint editor.
change.

Choose a Shape Edit the
to draw: line, Character Name.
circle, rectangle,
or triangle.

Change the
Line Width for
your drawing.

Select a Color to use for drawing and filling in shapes.

To move a character or shape on the canvas, select the
Drag tool and drag the character or shape into place.
When you tap a shape, small dots will appear, and you
can drag these dots to alter the shape.
To turn a character or shape, select the Rotate tool,
tap a character or shape, and drag your finger over
the screen to rotate it around its center.
To make a copy of something, select the Duplicate tool

and then tap the ch1a3r8acter or shape.

To delete an item, select the Cut tool and then tap the

Reference Guides

Paint Editor Tools

Tool Name Description

Drag To move a character or shape on the can­
vas, select the Drag tool and drag the
Rotate character or shape into place. When you
Duplicate tap a shape, small dots will appear, and
Cut you can drag these dots to alter the shape.
To turn a character or shape, select the
Rotate tool, tap the character or shape,
and drag your finger over the screen to
rotate it around its center.
To make a copy of something, select the
Duplicate tool, and then tap the character
or shape.
To delete an item, select the Cut tool, and
then tap the character or shape you want
to delete.

Camera If you want to add a photo to your back­
ground or character, tap the Camera tool,
and then tap the area or shape that you
want to put the picture in. Then tap the
Camera button to take a picture. Your
picture will fill only the area or shape you
selected.

Fill To color an object, select the Fill tool,
choose a color, and then tap the area you
want to fill with that color.

139



Index

A changing direction of, 21
conversation between, 80
Android tablets, 4 copying between pages, 63–64
animation deleting, 22, 59, 63
drawing in paint editor, 82
hiding and showing characters, editing in paint editor, 88
37–38 growing/shrinking, 38
hiding/showing, 37–38
moving characters, 29, 34–35 positioning on grid, 30–31
number input on blocks and, programming area for, 16
repeating actions, 40–41
29, 32 resetting position of
positioning characters on grid,
with Go Home block, 101
29 – 31 with Reset Characters
repeating actions, 40–41, 44
button, 100
B with Start on Green Flag

background, changing, 13–14 block, 30
Blast Off! game, 103–105 Change Color button, for titles, 18, 64
blocks. See also individual block Change Size button, for titles, 18, 64
Circle tool, 83–85
categories control blocks, 41, 137
color as running indicator, 43
control, 41, 137 Repeat block, 40–41, 44
deleting, 22 Set Speed block, 67–69
deleting multiple, 42 Stop block, 115, 117
end, 62, 137 Wait block, 73–75, 77–79
looks, 16–17, 136 Cut tool, 88–89, 139
motion, 11, 135
number input on, 29, 32 D
palette, 10–11
reference, 134–137 Dance Party project
running scripts by tapping, 11 adding background, 13–14
sound, 53, 136 adding characters, 14–16
triggering, 12, 134 adding speech, 16–18
adding title, 18–19
C Green Flag button, 12
making cat move, 10–11
Camera tool, 48, 139 saving project, 19–20
canvas (paint editor), 83
Cats versus Birds! game, 118–120 debugging, 50, 96
characters diagonal movement, 31
Drag tool, 84, 87, 139
adding, 14–16
adding on new pages, 61
adding photo to blank face, 47–49

Index

drawing, in paint editor, 83–88 L
Duplicate tool, 85, 139
Line tool, 86
E literacy, coding as, 2
long press action, 22
end blocks, 62, 137 looks blocks, 16–17, 136
Go to Page block, 62–63
Repeat Forever block, 40–41, 109 Grow block, 38
Hide block, 37–38, 39
Enter Presentation Mode button, 115 Say block, 16–18, 54–55
Exit Presentation Mode button, 116 Show block, 37–38
Shrink block, 38, 99–100
F
M
Fill tool, 86, 139
motion blocks, 11, 135
G changing character direction, 21
creating animation using, 29–30
game creation Go Home block, 101
Blast Off! game, 103–105 Hop block, 31
Cats versus Birds! game, 118–120 Turn Right block, 34–35
Guess the Odd One Out! game, using multiple, 32
113–116
Pick a Peach! game, 98–101 O
Play Tag! game, 108–110
Old MacDonald’s Farm project, 45–47
Go Home block, 101, 135
Go to Page block, 62–63, 137 P
Green Flag button, 12
grid, 30 pages
Grow block, 38, 136 adding, 59
Guess the Odd One Out! game, adding characters to, 61
changing order, 63
113–116 connecting together, 62–63
deleting, 63
H switching between, 60

Hide block, 37–38, 39, 136 Paintbrush button, 48, 81
Hop block, 31, 135 paint editor

I creating custom characters in, 82
drawing snowman, 83–88
installation, 4 opening, 48
interface, 23–25 tool reference, 138–139
pausing using Wait block, 73–75,
blocks palette, 10–11
character area, 15 77–79
grid, 30 photos, adding to characters, 47–49
programming area, 11, 16 Pick a Peach! game, 98–101
stage area, 10 Play Recorded Sound block,
undo/redo, 22
iPads, 4, 57 54–55, 136
Play Tag! game, 108–110

142

Index

Pop block, 136 specific to characters, 57
presentation mode, 113, 115–116 using with Say blocks, 54–56
programming area, 11, 16, 42 speech bubbles
projects adding with the Say block, 16–17
displaying longer speeches, 54
Cats versus Birds! game, 118–120 playing along with sounds, 56
creating, 9–10, 34 stage area, 10
Dance Party. See Dance Party Start on Bump block, 108, 110,

project 112, 134
deleting, 22 Start on Green Flag block, 12, 134
naming, 19–20 Start on Message block, 104–105, 134
Old MacDonald’s Farm, 45–47 Start on Tap block, 100, 134
running, 11–12 Stop block, 115, 117, 137
saving, 20, 96 Stop (recording) button, 53
titles for, 18–19 Stop (script) button, 23, 42
Tortoise and the Hare, 91–94
T
R
thumbnails, on Go to Page blocks, 62
recording sounds, 53–54 titles
Redo button, 22
Repeat block, 40–41, 44, 137 adding, 18–19
Repeat Forever block, 40–41, 109, 137 color and size for, 18, 64
Reset Characters button, 100 moving, 65
Reset Size block, 136 tool reference (paint editor), 138–139
Rotate tool, 87, 139 Tortoise and the Hare project, 91–94
Triangle tool, 86
S triggering blocks, 12, 134
Send Message block, 104–105
Say block, 16–18, 54–55, 136 Start on Bump block, 108,
ScratchEd website, 130–131
ScratchJr, 2–3 110, 112
Start on Green Flag block, 12
installation, 4 Start on Message block, 104–105
transitioning to Scratch, 127–130 Start on Tap block, 100
scripts Stop block, 115, 117
copying, 69, 114 Turn Left block, 135
defined, 11 Turn Right block, 34–35, 135
running, 11–12
stopping, 42 U
Send Message block, 104–105, 134
Set Speed block, 67–69, 137 Undo button, 22
Show block, 37–38, 136
Shrink block, 38, 99–100, 136 W
snowman, drawing, 83–88
sound blocks, 53, 136 Wait block, 73–75, 77–79, 137
deleting recorded sound, 56
recording sounds, 53–54

143

Resources

Visit http://www.nostarch.com/scratchjr/ for resources, errata, and more
information.

More Smart Books for Curious Kids!

Super Scratch Learn to Program Learn to Program
Programming Adventure! with Scratch with Minecraft

Learn to Program by Making Cool Games! A Visual Introduction to Programming by craig richardson
with Games, Art, Science, and Math fall 2015, 304 pp., $29.95
by the lead project isbn 978-1-59327-670-6
october 2013, 160 pp., $24.95 by majed marji
isbn 978-1-59327-531-0 february 2014, 288 pp., $34.95 full color
isbn 978-1-59327-543-3
full color
full color

Lauren Ipsum Teach Your Kids to Code Python for Kids

A Story About Computer S­ cience and A Parent-Friendly Guide to Python A Playful Introduction to Programming
Other Improbable Things Programming
by jason r. briggs
by carlos bueno by bryson payne december 2012, 344 pp., $34.95
isbn 978-1-59327-407-8
december 2014, 192 pp., $16.95 april 2015, 336 pp., $29.95
isbn 978-1-59327-574-7 isbn 978-1-59327-614-0 full color

full color full color

800.420.7240 or 415.863.9900 | [email protected] | www.nostarch.com


Click to View FlipBook Version