m
 
(6 intermediate revisions by 3 users not shown)
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 Sensing Extension|Video Sensing]]
 
|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 a [[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 from the [[When () is greater than () (block)|When () > () block]] in [[Scratch 3.0]], because video motion became an extension.
  
 
== Example Uses ==
 
== Example Uses ==
 
This block can be used for many things, such as:
 
This block can be used for many things, such as:
 
* Being motion activated
 
* Being motion activated
<scratchblocks>when video motion > (10)::hat extension
+
<scratchblocks>when video motion > (10)::hat videosensing
broadcast [start v]</scratchblocks>
+
broadcast (start v)</scratchblocks>
 
* Making a sprite move when there is motion
 
* Making a sprite move when there is motion
<scratchblocks>when video motion > (10)::hat extension
+
<scratchblocks>when video motion > (10)::hat videosensing
 
move (10) steps
 
move (10) steps
 
if on edge, bounce</scratchblocks>
 
if on edge, bounce</scratchblocks>
Line 24: Line 25:
 
<scratchblocks>
 
<scratchblocks>
 
forever
 
forever
wait until <(video [motion v] on [stage v]::extension) > (10)>
+
wait until <(video (motion v) on (stage v)::videosensing) > (10)>
 
. . .
 
. . .
wait until <not <(video [motion v] on [stage v]::extension) > (10)>>
+
wait until <not <(video (motion v) on (stage v)::videosensing) > (10)>>
 
</scratchblocks>
 
</scratchblocks>
  
Line 33: Line 34:
 
* [[Video Motion Extension]]
 
* [[Video Motion Extension]]
 
* [[Video Sensing]]
 
* [[Video Sensing]]
 +
 +
{{video Sensing Blocks}}
  
 
[[Category:Video Sensing]]
 
[[Category:Video Sensing]]
 
[[Category:Scratch 3.0]]
 
[[Category:Scratch 3.0]]

Latest revision as of 14:38, 25 February 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 Sensing
Type Hat
Introduced in 3.0

When video motion > () block is a 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 from 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 videosensing
broadcast (start v)
  • Making a sprite move when there is motion
when video motion > (10)::hat videosensing
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)::videosensing) > (10)>
. . .
wait until <not <(video (motion v) on (stage v)::videosensing) > (10)>>

See Also