Page 109 - 2403_Trackpad_V5.1_C5_Fb
P. 109
Step 3 Click the Motion button to show the Motion blocks. move 100 steps
Step 4 Drag a Move 10 steps block to the code area and change the
value to 100.
Step 5 Click the Control Button to show the Control blocks. if then
Step 6 Drag an if…then block to the code area.
Step 7 Drag a touching mouse-pointer block from the Sensing block and use it
with an if block. Click on the drop-down arrow present next to touching
mouse pointer block and select edge from the list.
Step 8 Drag a start sound Meow from the Sound if
blocks and place it inside the if…then block. touching edge ? then
Step 9 Click on Green Flag button to see the start sound Meow
output.
Role of Video Sensing extension in Scratch
Keep on clicking this icon until the
cat reaches the edge.
Using the Sensing Menu when clicked
Now use the Sensing menu to ask the user for age, user set age to 0
types in age, or display the stored answer. ask What’s your age? and wait
Now, create a variable named age. set age to answer
say Join I Know your age is answer
More on Scratch 107

