Pen Blocks

Shapes

{"func":"blockPenClearEllipse"}

Clear Ellipse At

"Clear Ellipse At" clears an ellipse with a center at the supplied X and Y coordinates and with the given width and height.

Parameters:

X: This is the X coordinate of the center of the ellipse that will be cleared.

Y: This is the Y coordinate of the center of the ellipse that will be cleared.

Width: This number is the width of the ellipse that will be cleared.

Height: This number is the height of the ellipse that will be cleared.

Related Blocks:
{"func":"blockPenDrawEllipse"} ,     {"func":"blockPenClearRect"} ,     {"func":"blockPenClearTriangle"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"next":{"func":"blockPenClearEllipse","values":[{"type":"wrapper","func":"valueSensingMouseX"},{"type":"wrapper","func":"valueSensingMouseY"},{"type":"number","value":20},{"type":"number","value":20}]}} Add to my Backpack


{"func":"blockPenDrawPoint"}

Draw Point At

"Draw Point At" draws a point at the specified X and Y coordinates.

Parameters:

X: This is the X coordinate of the point that will be drawn.

Y: This is the Y coordinate of the point that will be drawn.

Related Blocks:
{"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawTriangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawEllipse"}

Sample Code:
{"func":"blockPenDrawPoint","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"100"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"100"}]}]} Add to my Backpack


{"func":"blockPenDrawLine"}

Draw Line

"Draw Line" draws a line starting at the supplied X1 and Y1 coordinates and ending at the supplied X2 and Y2 coordinates.

Parameters:

X1: This is the X coordinate of the first point of the line.

Y2: This is the Y coordinate of the first point of the line.

X2: This is the X coordinate of the second point of the line.

Y2: This is the Y coordinate of the second point of the line.

Related Blocks:
{"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawTriangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawEllipse"}

Sample Code:
{"func":"blockPenClear","next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockPenDrawLine","values":[{"type":"number","value":"0"},{"type":"number","value":"0"},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}]}]}} Add to my Backpack


{"func":"blockPenDrawRectangle"}

Draw Rectangle At

"Draw Rectangle At" draws a rectangle with the origin at the supplied X and Y coordinates and with the given width and height.

Parameters:

X: This is the X coordinate of the origin of the rectangle that will be drawn.

Y: This is the Y coordinate of the origin of the rectangle that will be drawn.

Width: This number is the width of the rectangle that will be drawn.

Height: This number is the height of the rectangle that will be drawn.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawTriangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawEllipse"} ,     {"func":"blockPenDrawRectangleLocal"}

Sample Code:
{"func":"blockPenClear","next":{"func":"blockPenSetNoFill","next":{"func":"blockPenDrawRectangle","values":[{"type":"number","value":"10"},{"type":"number","value":"10"},{"type":"number","value":"5"},{"type":"number","value":"10"}]}}} Add to my Backpack


{"func":"blockPenDrawRectangleLocal"}

Draw Rectangle

"Draw Rectangle" draws a rectangle with the origin at the Actor’s current position and the given width and height

Parameters:

Width: This number is the width of the rectangle that will be drawn.

Height: This number is the height of the rectangle that will be drawn.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawTriangle"}

Sample Code:
{"func":"blockPenClear","next":{"func":"blockPenSetNoFill","next":{"func":"blockPenDrawRectangleLocal","values":[{"type":"number","value":"10"},{"type":"number","value":"10"}]}}} Add to my Backpack


{"func":"blockPenDrawTriangle"}

Draw Triangle

"Draw Triangle" draws a triangle with vertices at the given coordinates (X1, Y1), (X2, Y2) and (X3, Y3).

Parameters:

X1: This is the X coordinate of the first vertex of the triangle.

Y1: This is the Y coordinate of the first vertex of the triangle.

X2: This is the X coordinate of the second vertex of the triangle.

Y2: This is the Y coordinate of the second vertex of the triangle.

X3: This is the X coordinate of the third vertex of the triangle.

Y3: This is the Y coordinate of the third vertex of the triangle.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawEllipse"}

Sample Code:
{"func":"blockPenDrawTriangle","values":[{"type":"number","value":"0"},{"type":"number","value":"0"},{"type":"number","value":"100"},{"type":"number","value":"100"},{"type":"number","value":"-100"},{"type":"number","value":"100"}]} Add to my Backpack


{"func":"blockPenDrawEllipse"}

Draw Ellipse At

"Draw Ellipse At" draws an ellipse with a center at the supplied X and Y coordinates and with the given width and height.

Parameters:

X: This is the X coordinate of the center of the ellipse that will be drawn.

Y: This is the Y coordinate of the center of the ellipse that will be drawn.

Width: This number is the width of the ellipse that will be drawn.

Height: This number is the height of the ellipse that will be drawn.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawTriangle"} ,     {"func":"blockPenDrawEllipseLocal"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetShade","values":[{"type":"number","value":"50"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#a4a4a4"}],"next":{"func":"blockPenDrawEllipse","values":[{"type":"number","value":"0"},{"type":"number","value":"0"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenDrawEllipseLocal"}

Draw Ellipse

"Draw Ellipse" draws an ellipse with the center at the Actor’s current position and the given width and height.

Parameters:

Width: This number is the width of the ellipse that will be drawn.

Height: This number is the height of the ellipse that will be drawn.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawTriangle"}

Sample Code:
{"func":"blockPenClear","next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#6a7aff"}],"next":{"func":"blockPenDrawEllipseLocal","values":[{"type":"number","value":"30"},{"type":"number","value":"30"}]}}} Add to my Backpack


{"func":"blockPenDrawBezier"}

Draw Bezier

"Draw Bezier" draws a bezier curve with the given points.

Parameters:

X1: This is the X coordinate of the first point of the bezier.

Y1: This is the Y coordinate of the first point of the bezier.

X2: This is the X coordinate of the second point of the bezier.

Y2: This is the Y coordinate of the second point of the bezier.

CX1: This is the X coordinate of the first control point of the bezier.

CY1: This is the Y coordinate of the first control point of the bezier.

CX2: This is the X coordinate of the second control point of the bezier.

CY2: This is the Y coordinate of the second control point of the bezier.

Related Blocks:
{"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawTriangle"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawEllipse"}

Sample Code:
{"func":"blockPenDrawBezier","values":[{"type":"number","value":"10"},{"type":"number","value":"10"},{"type":"number","value":"50"},{"type":"number","value":"50"},{"type":"number","value":"20"},{"type":"number","value":"15"},{"type":"number","value":"43"},{"type":"number","value":"23"}]} Add to my Backpack


{"func":"blockPenClearRect"}

Clear Rectangle At

"Clear Rectangle At" clears a rectangle with the origin at the supplied X and Y coordinates and with the given width and height.

Parameters:

X: This is the X coordinate of the origin of the rectangle that will be cleared.

Y: This is the Y coordinate of the origin of the rectangle that will be cleared.

Width: This number is the width of the rectangle that will be cleared.

Height: This number is the height of the rectangle that will be cleared.

Related Blocks:
{"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawRectangleLocal"} ,     {"func":"blockPenClearTriangle"} ,     {"func":"blockPenClearEllipse"}

Sample Code:
{"func":"blockPenDown","next":{"func":"blockPenSetNoFill","next":{"func":"blockPenClearRect","values":[{"type":"number","value":"10"},{"type":"number","value":"10"},{"type":"number","value":"50"},{"type":"number","value":"10"}]}}} Add to my Backpack


{"func":"blockPenClearTriangle"}

Clear Triangle

"Clear Triangle" clears a triangle with vertices at the given coordinates (X1, Y1), (X2, Y2) and (X3, Y3).

Parameters:

X1: This is the X coordinate of the first vertex of the triangle.

Y1: This is the Y coordinate of the first vertex of the triangle.

X2: This is the X coordinate of the second vertex of the triangle.

Y2: This is the Y coordinate of the second vertex of the triangle.

X3: This is the X coordinate of the third vertex of the triangle.

Y3: This is the Y coordinate of the third vertex of the triangle.

Related Blocks:
{"func":"blockPenDrawTriangle"} ,     {"func":"blockPenClearRect"} ,     {"func":"blockPenClearEllipse"}

Sample Code:
{"func":"blockPenClearTriangle","values":[{"type":"number","value":"0"},{"type":"number","value":"0"},{"type":"number","value":"100"},{"type":"number","value":"100"},{"type":"number","value":"-100"},{"type":"number","value":"100"}]} Add to my Backpack


Pen Drawing

{"func":"blockPenClear"}

Clear

"Clear" clears all markings made by the pen or stamp.

Parameters:

None.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetSize","values":[{"type":"number","value":"3"}],"next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#d7edff"}],"next":{"func":"blockPenDrawRectangle","values":[{"type":"number","value":"-50"},{"type":"number","value":"50"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenDown"}

Pen Down

"Pen Down" allows the pen to begin tracing the Actor’s path.

Parameters:

None.

Related Blocks:
{"func":"blockPenUp"} ,     {"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenDown"}} Add to my Backpack


{"func":"blockPenUp"}

Pen Up

"Pen Up" stops the pen from tracing the Actor’s path.

Parameters:

None.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenUp"}} Add to my Backpack


{"func":"blockPenChangeSize"}

Change Pen Size

"Change Pen Size" changes the pen’s thickness by the specified amount.

Parameters:

Size Increase: The pen’s size will increase by this number. Use a negative number to make the pen thinner.

Related Blocks:
{"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetShade"} ,     {"func":"blockPenSetSize"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlForever","containers":[{"func":"blockControlWait","values":[{"type":"number","value":"1"}],"next":{"func":"blockPenChangeSize","values":[{"type":"number","value":"1"}]}}]}} Add to my Backpack


{"func":"blockPenSetSize"}

Set Pen Size

"Set Pen Size" sets the pen thickness to the specified value.

Parameters:

Size: The pen’s size will be set to this number. The smaller the number, the thinner the pen.

Related Blocks:
{"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetShade"} ,     {"func":"blockPenChangeSize"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetSize","values":[{"type":"number","value":"3"}],"next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#d7edff"}],"next":{"func":"blockPenDrawRectangle","values":[{"type":"number","value":"-50"},{"type":"number","value":"50"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenStamp"}

Stamp

"Stamp" stamps an image of the Actor on the Stage.

Parameters:

None.

Related Blocks:
{"func":"blockPenClear"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


Color

{"func":"blockPenSetColor"}

Set Pen Color

"Set Pen Color" sets the color of the pen to the color specified by the parameter (colors are represented as hexadecimal numbers).

Parameters:

Color: This parameter indicates which color the pen will draw with. Select a color from the color wheel, or manually select a color with a hexadecimal number.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetSize","values":[{"type":"number","value":"3"}],"next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#d7edff"}],"next":{"func":"blockPenDrawRectangle","values":[{"type":"number","value":"-50"},{"type":"number","value":"50"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenChangeHue"}

Change Pen Color

"Change Pen Color" increases the color by the number specified by the parameter.

Parameters:

Color Change: The pen’s color, represented by a hexadecimal number, will increase by this number.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"} ,     {"func":"blockPenSetColor"} ,     {"func":"blockPenSetHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#ffffff"}],"next":{"func":"blockControlForever","containers":[{"func":"blockPenChangeHue","values":[{"type":"number","value":"10"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}]}}} Add to my Backpack


{"func":"blockPenSetHue"}

Set Pen Color

"Set Pen Color" sets the color of the pen to the color specified by the parameter (colors are represented as hexadecimal numbers).

Parameters:

Color: The pen’s color, represented by a hexadecimal number, will be set to this number.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"} ,     {"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#ffffff"}],"next":{"func":"blockControlForever","containers":[{"func":"blockPenChangeHue","values":[{"type":"number","value":"10"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}]}}} Add to my Backpack


{"func":"blockPenChangeShade"}

Change Pen Shade

"Change Pen Shade" changes the pen’s shade (lightness) by the specified amount.

Parameters:

Shade Increase: The pen’s shade will increase by this number. Higher numbers indicate lighter shades, so use a negative number if you want to make the pen darker.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"} ,     {"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#ffffff"}],"next":{"func":"blockControlForever","containers":[{"func":"blockPenChangeShade","values":[{"type":"number","value":"10"}],"next":{"func":"blockPenChangeHue","values":[{"type":"number","value":"10"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]}}} Add to my Backpack


{"func":"blockPenSetShade"}

Set Pen Shade

"Set Pen Shade" sets the pen’s shade (lightness) to the specified amount.

Parameters:

Shade: The pen’s shade will be set to this number. Higher numbers indicate lighter shades.

Related Blocks:
{"func":"blockPenSetColor"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenChangeSize"} ,     {"func":"blockPenSetSize"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetShade","values":[{"type":"number","value":"50"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#a4a4a4"}],"next":{"func":"blockPenDrawEllipse","values":[{"type":"number","value":"0"},{"type":"number","value":"0"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenSetFillColor"}

Set Fill Color

"Set Fill Color" sets the color to fill in any shapes that you draw.

Parameters:

Color: This parameter is a color, represented by a hexadecimal number, that your shapes will be filled in with.

Related Blocks:
{"func":"blockPenSetNoFill"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenClear","next":{"func":"blockPenSetSize","values":[{"type":"number","value":"3"}],"next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#000000"}],"next":{"func":"blockPenSetFillColor","values":[{"type":"color","value":"#d7edff"}],"next":{"func":"blockPenDrawRectangle","values":[{"type":"number","value":"-50"},{"type":"number","value":"50"},{"type":"number","value":"100"},{"type":"number","value":"100"}]}}}}}} Add to my Backpack


{"func":"blockPenSetNoFill"}

No Fill

"No Fill" causes any shapes you draw to have no fill color.

Parameters:

None.

Related Blocks:
{"func":"blockPenSetFillColor"}

Sample Code:
{"func":"blockPenClear","next":{"func":"blockPenSetNoFill","next":{"func":"blockPenDrawRectangleLocal","values":[{"type":"number","value":"10"},{"type":"number","value":"10"}]}}} Add to my Backpack


Text

{"func":"blockPenSetFont"}

Set Font

"Set Font" sets the font to the specified font attributes, style, and size.

Parameters:

Font Attributes: This parameter is any font attribute you want your text to have. You can choose attributes like "bold," "italic," "italic bold," or just "normal."

Font Size: This parameter is a number that indicates the font’s size.

Font Style: This parameter is the font style, and often includes multiple options, like "Arial, Helvetica, sans-serif." In that case, Arial will be chosen first, then Helvetica, then sans-serif depending on which ones are available.

Related Blocks:
{"func":"blockPenDrawText"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"GameOver"}],"next":{"func":"blockLooksSwitchBackground","values":[{"type":"string","value":"GameOver"}],"next":{"func":"blockPenSetColor","values":[{"type":"color","value":"#f60100"}],"next":{"func":"blockPenSetFont","values":[{"type":"choice","value":"bold"},{"type":"choice","value":"28"},{"type":"choice","value":"Arial,Helvetica,sans-serif"}],"next":{"func":"blockPenDrawTextAt","values":[{"type":"string","value":"GameOver:("},{"type":"number","value":"-85"},{"type":"number","value":"0"}]}}}}} Add to my Backpack


{"func":"blockPenSetFontColor"}

Set Font Color

"Set Pen Color" sets the color of the font to the color specified by the parameter (colors are represented as hexadecimal numbers).

Parameters:

Color: This parameter indicates which color the font will draw text with. Select a color from the color wheel, or manually select a color with a hexadecimal number.

Related Blocks:
{"func":"blockPenDown"} ,     {"func":"blockPenUp"} ,     {"func":"blockPenChangeHue"} ,     {"func":"blockPenSetHue"} ,     {"func":"blockPenChangeShade"}

Sample Code:
{"func":"blockPenSetFontColor","values":[{"type":"color","value":"#000000"}]} Add to my Backpack


{"func":"blockPenDrawText"}

Draw Text

"Draw Text" draws the specified text on the Stage.

Parameters:

Text: This parameter is a string that holds the text you want to write on the Stage.

Related Blocks:
{"func":"blockPenDrawLine"} ,     {"func":"blockPenDrawRectangle"} ,     {"func":"blockPenDrawBezier"} ,     {"func":"blockPenDrawPoint"} ,     {"func":"blockPenDrawTriangle"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenDrawText","values":[{"type":"wrapper","func":"valueControlIfElse","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"string","value":"Pause"},{"type":"string","value":"Play"}]}]}} Add to my Backpack


{"func":"blockPenDrawTextAt"}

Draw Text At

"Draw Text At" draws the specified text on the Stage.

Parameters:

Text: This parameter is a string that holds the text you want to write on the Stage.

X: This is the X coordinate of the origin of your text.

Y: This is the Y coordinate of the origin of your text.

Related Blocks:
{"func":"blockPenSetFont"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockPenDrawText","values":[{"type":"wrapper","func":"valueControlIfElse","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"string","value":"Pause"},{"type":"string","value":"Play"}]}]}} Add to my Backpack


{"func":"registerDraw"}

When Drawing Actor

"When Drawing Actor" activates code below it when the Actor needs to be redrawn.

Parameters:

None.

Related Blocks:
{"func":"blockPenRedraw"}

Sample Code:
{"func":"registerDraw","next":{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":"female laugh"}]}} Add to my Backpack


{"func":"blockPenRedraw"}

Redraw Actor

"Redraw Actor" causes the Actor whose code you are in to be redrawn.

Parameters:

None.

Related Blocks:
{"func":"registerDraw"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlWait","values":[{"type":"number","value":"5"}],"next":{"func":"blockPenRedraw"}}} Add to my Backpack