m (Added a block for the image and more.)
m (Fixed the obsolete blocks.)
 
Line 25: Line 25:
 
when [up arrow v] key pressed
 
when [up arrow v] key pressed
 
broadcast [up animation v] // To the player sprite so it can do the animation
 
broadcast [up animation v] // To the player sprite so it can do the animation
scroll up (5)
+
scroll up (5)::motion
  
 
when [down arrow v] key pressed
 
when [down arrow v] key pressed
 
broadcast [down animation v] // To the player sprite so it can do the animation
 
broadcast [down animation v] // To the player sprite so it can do the animation
scroll up (-5)
+
scroll up (-5)::motion
 
</scratchblocks>
 
</scratchblocks>
 
==See Also==
 
==See Also==

Latest revision as of 20:29, 23 April 2021

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 Up ()
scroll up ()::motion
Category Motion
Type Stack
Introduced in 2.0 alpha
Removed in 2.0 alpha

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

Example Uses

  • Simulating a rocket.
when I receive [rocket launched v]
repeat until <(y scroll::sensing) = (150)
scroll up (10)::motion
end
. . .
  • Simulating a person climbing a wall.
when [up arrow v] key pressed
broadcast [up animation v] // To the player sprite so it can do the animation
scroll up (5)::motion

when [down arrow v] key pressed
broadcast [down animation v] // To the player sprite so it can do the animation
scroll up (-5)::motion

See Also

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