Page 81 - 2617_JSSPS_C-4
P. 81
This block turns the webcam on, off or flips the
turn video on
video feed.
This block is used to control the visibility of the video
on
set video transparency to 50
feed from the webcam.
Factbot
The ‘set video transparency to ()’ block sets how transparent the video is. 0 shows the video clearly,
100 hides it completely.
Project Sprite Reacts When You Move
Create a simple project where the sprite reacts to your
movements captured by the webcam. To create a simple project
using the Video Sensing extension, follow the given steps:
Step 1: Click the Add Extension button.
Step 2: Select Video Sensing extension.
Step 3: Remove the default sprite and add a new sprite.
Step 4: Create the given script for the chosen sprite. when video motion > 10
Now, step in front of the webcam and wave your hand or play sound duck until done
touch the sprite. The sprite will detect your movements, play
say I am a duck! for 2 seconds
the duck sound and say, ‘I am a duck!’.
Designing Games and Storyboard in Scratch 3 79

