m (→‎See Also: general clean up)
m (Added a block for the image and more.)
Line 2: Line 2:
 
{{block
 
{{block
 
| name      = Scroll Up ()
 
| name      = Scroll Up ()
| image      = File:Scroll Up (10).png
+
| image      = scroll up ()::motion
 
| category  = [[Motion Blocks|Motion]]
 
| category  = [[Motion Blocks|Motion]]
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
 
| added      = [[2.0]] [[Development of Scratch 2.0#Alpha|alpha]]
 
| added      = [[2.0]] [[Development of Scratch 2.0#Alpha|alpha]]
 
| removed    = 2.0 alpha
 
| removed    = 2.0 alpha
 +
| sb = 2.0
 
}}
 
}}
 
The '''Scroll Up ()''' [[Blocks|block]] was a [[Motion Blocks|Motion block]] and a [[Stack Block|Stack block]] in the Scratch 2.0 alpha. The block panned the [[Backdrops|backdrop]] vertically. It was removed late in the alpha.
 
The '''Scroll Up ()''' [[Blocks|block]] was a [[Motion Blocks|Motion block]] and a [[Stack Block|Stack block]] in the Scratch 2.0 alpha. The block panned the [[Backdrops|backdrop]] vertically. It was removed late in the alpha.
  
 
==Example Uses==
 
==Example Uses==
* Repeating a background vertically
+
* Simulating a rocket.
* Moving the Stage
+
<scratchblocks version="2.0">
 +
when I receive [rocket launched v]
 +
repeat until <(y scroll::sensing) = (150)
 +
scroll up (10)::motion
 +
end
 +
. . .
 +
</scratchblocks>
  
 +
* Simulating a person climbing a wall.
 +
<scratchblocks version="2.0">
 +
when [up arrow v] key pressed
 +
broadcast [up animation v] // To the player sprite so it can do the animation
 +
scroll up (5)
 +
 +
when [down arrow v] key pressed
 +
broadcast [down animation v] // To the player sprite so it can do the animation
 +
scroll up (-5)
 +
</scratchblocks>
 
==See Also==
 
==See Also==
 
* [[Y Scroll (block)|Y Scroll]]
 
* [[Y Scroll (block)|Y Scroll]]

Revision as of 20:28, 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)

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

See Also

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