(update)
m (not how you update something)
 
Line 1: Line 1:
 
{{block
 
{{block
 
| name      = Pen Up
 
| name      = Pen Up
| image      = File:2.0 Pen_Up.png
+
| image      = pen up
 
| category  = [[Pen Blocks|Pen]]
 
| category  = [[Pen Blocks|Pen]]
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
}}The '''Pen Up''' [[Blocks|block]] is a [[Pen Blocks|Pen block]] and a [[Stack Block|Stack block]]. If a [[sprite]] is currently using the [[pen]] feature because of the [[Pen Down (block)|Pen Down]] block, the block will stop it from continuing. If the pen feature is not being used, the block will have no effect.
+
| sb        = yes
<br /><br /> {{Note|Upon the release of 3.0, this block can now be found in "[[Extensions]]".}}
+
}}The '''Pen Up''' [[Blocks|block]] is a [[Pen Extension|Pen block]] and a [[Stack Block|Stack block]]. If a [[sprite]] is currently using the [[pen]] feature because of the [[Pen Down (block)|Pen Down]] block, the block will stop it from continuing. If the pen feature is not being used, the block will have no effect.
  
 
==Example Uses==
 
==Example Uses==

Latest revision as of 10:12, 20 February 2019

Pen Up
pen up
Category Pen
Type Stack
The Pen Up block is a Pen block and a Stack block. If a sprite is currently using the pen feature because of the Pen Down block, the block will stop it from continuing. If the pen feature is not being used, the block will have no effect.

Example Uses

This block is only used for a small number of circumstances, but it still can have much effect when used. It's most popular use is to raise a lowered pencil (or pen, paintbrush, etc.) from the screen in a drawing project.

Some common uses for the Pen Up block:

pen down
repeat (10)
  change x by (5)
end
pen up
  • Drawing patterns on the screen
pen down
repeat (50)
  set x to (pick random (-240) to (240))
  set y to (pick random (-180) to (180))
end
pen up
go to x: (0) y: (0)
set pen color to [#CCCCCC]
set pen size to (20)
pen down
change x by (150)
pen up
go to x: (5) y: (0)
set pen color to [#5555FF]
set pen size to (12)
pen down
change x by (140)
pen up
Note Note: All these examples include the Pen Down block; they often work together.

Workaround

There is no direct workaround for this block, since it is a primitive function of Scratch. However, you can set the pen color to the background color, so that the pen has no effect. It only works on uniformly colored backgrounds.

See Also