Eng:Video () on () (block)

The Video on  block is a Sensing block and a Reporter block. It gets values of the video, either motion (on a scale of 1 to 100) or direction (which way the detected motion is going, measured on the same plane as sprite direction), on either the Stage, or the current sprite.

It calculates the values based on "optical flow".

Example Uses
forever move (video [motion v] on [this sprite v]) steps point in direction (video [direction v] on [this sprite v]) if <(video [motion v] on [this sprite v]) > [30]> then play sound [pop v] hide end when gf clicked forever if < <(video [motion v] on [Stage v]) > [30]> and  [30]>> > then say [Turn up the volume!] end if <  [30]>> and <(loudness) > [30]> > then say [Start moving!] end if <<(video [motion v] on [Stage v]) > [30]> and <(loudness) > [30]>> then say [Party!] end
 * Moving a sprite by moving
 * Popping balloons
 * Sensing lots of action, by also using loudness