(Redirected from Scroll Right ())

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.
Scroll Right ()
scroll right ()::motion
Category Motion
Type Stack
Introduced in 2.0 alpha
Removed in 2.0 alpha

The Scroll Right () block was a Motion block and a Stack block in the Scratch 2.0 alpha. The block panned the backdrop horizontally. It was removed late in the alpha.

Benefits

The block is very useful for creating RPG's and other scrolling games. Using Scroll Right () to scroll reduces much lag because to implement scrolling without the scrolling blocks requires scripts in every visible sprite, running all at once.

Example Uses

  • Moving the stage when the player decides to move.
when [up arrow v] key pressed
scroll up (10)::motion

when [down arrow v] key pressed
scroll up (-10)::motion

when [left arrow v] key pressed
scroll right (-10)::motion

when [right arrow v] key pressed
scroll right (10)::motion
  • Moving until reaching a certain destination.
. . .
repeat until <(x scroll::sensing) = (100)>
scroll right (10)::motion
end
. . .

See Also

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