m (BOT: preparing for transfer)
m (Fixed the obsolete blocks.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{transfer}}
 
 
{{obsolete feature}}
 
{{obsolete feature}}
 
{{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)::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
 +
</scratchblocks>
 
==See Also==
 
==See Also==
*[[Y Scroll (block)|Y Scroll]]
+
* [[Y Scroll (block)|Y Scroll]]
*[[Scrolling (Stage)]]
+
* [[Scrolling (Stage)]]
*[[Scroll Right () (block)|Scroll Right ()]]
+
* [[Scroll Right () (block)|Scroll Right ()]]
{{Motion Blocks}}{{Template:Removed Blocks}}
+
{{Motion Blocks}}{{Removed Blocks}}
 
[[Category:Motion Blocks]][[Category:Scratch 2.0]]
 
[[Category:Motion Blocks]][[Category:Scratch 2.0]]

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.