From Test-Scratch-Wiki

Turn Video ()
2.0 Turn Video ().png
Category Sensing
Type Stack
Introduced in 2.0

The Turn Video () block is a Sensing block and a stack block. It can turn the webcam on, off, or on flipped horizontally, depending on the argument. Early in the Scratch 2.0 alpha, it was categorized as a Looks block.


Note Caution: This block can turn on the computer's webcam. If you are uncomfortable with using a webcam for safety, avoid usage of this block or click "Deny" on the Adobe Flash Player warning if one pops up.

Options

The block contains a drop-down list of three options.

  • On

— Turns the webcam on for utilization of the motion-sensing features in Scratch 2.0.

  • Off

— Turns the webcam off which will cause the constant film pasted onto the Stage to remove.

  • On-flipped

— Turns the webcam on but displays the video footage in a horizontally flipped form. This option is not available in the stage but only in sprites.

Example Uses

  • Showing the user what they look like
when gf clicked
turn video [on v]
  • Turning the video on, to use the motion
when gf clicked //in Stage
turn video [on v]

when gf clicked //in a sprite
forever
 move <video [motion v] on [Stage v]> steps
 if on edge, bounce

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.