(Changed to sb)
Line 2: Line 2:
 
{{block
 
{{block
 
|name = When video motion > ()
 
|name = When video motion > ()
|image = File:Video motion is greater than blank.png
+
|image = when video motion > ()
 
|category = [[Video Motion Extension]]
 
|category = [[Video Motion Extension]]
 
|type = [[Hat Block|Hat]]
 
|type = [[Hat Block|Hat]]
 
|added = 3.0
 
|added = 3.0
 +
|sb=yes
 
}}
 
}}
 
'''When video motion > ()''' [[Blocks|block]] is an [[Video Motion Extension|Video Motion Extension block]] and a [[Hat Block]]. It starts the script below it when the current video motion on the stage is greater than the number entered. This block was split off of the [[When () is greater than () (block)|When () > () block]] in [[Scratch 3.0]], because video motion became an extension.
 
'''When video motion > ()''' [[Blocks|block]] is an [[Video Motion Extension|Video Motion Extension block]] and a [[Hat Block]]. It starts the script below it when the current video motion on the stage is greater than the number entered. This block was split off of the [[When () is greater than () (block)|When () > () block]] in [[Scratch 3.0]], because video motion became an extension.

Revision as of 17:03, 2 January 2020

The correct title of this article is When video motion > () (block). The Scratch Wiki uses this different title because of technical restrictions.
When video motion > ()
when video motion > ()
Category Video Motion Extension
Type Hat
Introduced in 3.0

When video motion > () block is an Video Motion Extension block and a Hat Block. It starts the script below it when the current video motion on the stage is greater than the number entered. This block was split off of the When () > () block in Scratch 3.0, because video motion became an extension.

Example Uses

This block can be used for many things, such as:

  • Being motion activated
when video motion > (10)::hat extension
broadcast [start v]
  • Making a sprite move when there is motion
when video motion > (10)::hat extension
move (10) steps
if on edge, bounce

Workaround

Main article: List of Block Workarounds

Using a Wait Until in conjunction with the Greater Than or the Less Than blocks can create a workaround for this block.

forever
wait until <(video [motion v] on [stage v]::extension) > (10)>
. . .
wait until <not <(video [motion v] on [stage v]::extension) > (10)>>

See Also