Eng:Mouse Y (block)

The Mouse Y block is a Sensing block and a Reporter block. The block holds the mouse-pointer's current Mouse Y.

Example Uses
As this block helps report where the mouse-pointer currently is, it is useful in sensing things with the mouse.

Some common uses for the Mouse Y block: when I receive [set price v] repeat until  if <(mouse y) > (100)> then set y to (100) else if <(mouse y) < (0)> then set y to (0) else set y to (mouse y)   end end set [price v] to (mouse y) end say (join (join (join (join [Your mouse is positioned at (] (mouse x))[,])(mouse y))[).]) set x to (([ceiling v] of ((mouse x) / (20)))*(20)) when gf clicked forever if (mouse down?) then if <<(mouse x) > (50)> and <(mouse x) < (100)>> then if <<(mouse y) > (50)> and <(mouse y) < (100)>> then broadcast [Button clicked! v]     end end end forever go to [mouse pointer v] change [color v] effect by (2)
 * Helping to make a virtual slider
 * With the Mouse X block, giving the mouse's location
 * Making a grid which objects snap to
 * Buttons
 * Adding animations to the mouse

Workaround
This block can be replicated with the following code:

forever go to [mouse-pointer v] set [Mouse Y v] to (y position)