Page 122 - Scratch Programming Playground
P. 122
Then paint a sprite by clicking the Paint new sprite button
next to New sprite. When the paint editor appears, draw a
wide rectangle using the rectangle tool.
I’ve made my paddle green, but you can choose another
color. a short paddle makes the ball more difficult to hit. Later,
you can experiment with different paddle sizes to make the
game easier or harder. Click the button to open the Info
area, and rename this sprite Paddle.
Next, add this code to program the Paddle sprite to make
it follow the mouse along the bottom of the Stage:
The Paddle sprite constantly moves 10 steps directly
toward the mouse, but its y position stays set to -140.
96 ChapTer 5

