Code Index Booklet.pdf
Code Index Booklet.pdf
Table of Contents
Scratch blocks
Motion
Looks
Sound
Events
Control
Sensing
Operators
Sample blocks
Move up/down/right/left
Jump
When sprite touches another sprite, do something
Bounce sprite left and right
Bounce sprite off of all 4 walls
Scratch blocks
Motion
Looks
Sound
Events
Control
Sensing
Operators
(Example: 10 mod 3 is 1)
Sample blocks
Move up/down/right/left
Whenever the up arrow is pressed, move the sprite up by 4 pixels.
Whenever the down arrow is pressed, move the sprite down by 4 pixels.
Whenever the right arrow is pressed, move the sprite right by 4 pixels.
Whenever the left arrow is pressed, move the sprite left by 4 pixels.
Jump
Whenever the space key is pressed, make the sprite jump: