Page 117 - Trackpad v5 class 5
P. 117
when I receive SpinningStopped
Step 7 Place the set Winner to Red block inside if touching color ? then
the if…then block. set winner to Red
Step 8 Complete the code for the Arrow 1 Sprite by using an if…then block for all the
colours used.
when I receive SpinningStopped
if touching color ? then
set winner to Red
if touching color ? then
set winner to Green
if touching color ? then
set winner to Blue
if touching color ? then
set winner to Yellow
MORE BLOCKS broadcast SpinningStopped
Step 1 Drag a broadcast block and click on the New
Message. New message
SpinningStopped
Step 2 Type YouareWinner in the New variable
name box.
After adding all the blocks, make the sprite (cat) active and add the following code:
when clicked when I receive YouareWinner
go to x: 100 y: -100 say Winner for 2 seconds
Creating Game in Scratch 115

