Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Y Scroll
(y scroll::sensing)
Category Sensing
Type Reporter
Introduced in v152 (2.0 alpha)
Removed in v172 (2.0 alpha)

The Y Scroll block was a Sensing block and a Reporter block in the alpha version of Scratch 2.0. The block reported how far up the stage was scrolled. If it had been scrolled down, a negative number was returned. It was removed late in the alpha.

Example Uses

  • Changing the color of the stage depending on the scrolled y position.
when gf clicked
forever
set [color v] effect to (y scroll::sensing)
end
  • Setting a message depending on the scrolled y position.
when gf clicked
set [message v] to []
forever
if <(y scroll::sensing) > (100)> then
set [message v] to [This is the beach.]
else
set [message v] to [These are the hills.]

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.