when video motion > ()

From PenguinMod Wiki
When video motion is greater than ()
Jump to navigation Jump to search
when video motion > ()
when video motion > ()
Caption
Block Type Hat Block
Category / Extension Video Sensing
Status Who tf uses status
The correct title of this article is when video motion > (). PenguinMod Wiki uses When video motion is greater than () instead because of technical restrictions.

The when video motion > () block is a hat block in the Video Sensing extension that runs when the video motion on the stage is greater than the entered number. It originates from Scratch, and was created in 3.0 due to the camera blocks being moved to the extension, removing the video motion option from the when () > () block. The default value for this block is 10.

Workaround

This block can be worked around by detecting when the video motion is greater than the entered number:

when gf clicked
forever
wait until <(video (motion v) on (stage v)) > (number::grey)>
...
wait until <not <(video (motion v) on (stage v)) > (number::grey)>>

The number reporter is a placeholder for the number inputted.