(Redirected from Scroll Right ())
|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
|Introduced in||2.0 alpha|
|Removed in||2.0 alpha|
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.
- 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 . . .