Looks Blocks

Costumes

{"func":"blockLooksNextCostume"}

Next Costume

"Next Costume" changes the Actor’s Costume to its next Costume.

Parameters:

None.

Related Blocks:
{"func":"blockLooksSwitchCostume"} ,     {"func":"blockLooksFirstCostumeInGroup"} ,     {"func":"blockLooksNextCostumeInGroup"}

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


{"func":"blockLooksNextCostumeInGroup"}

Next Costume Starting With

"Next Costume Starting With" switches to the next Costume that starts with the specified text.

Parameters:

Prefix: This parameter should be a prefix of at least one of the Actor’s Costumes. Your Actor’s Costume will change to the next Costume with this prefix.

Related Blocks:
{"func":"blockLooksSwitchCostume"} ,     {"func":"blockLooksNextCostume"} ,     {"func":"blockLooksFirstCostumeInGroup"}

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


{"func":"valueLooksCostumeName"}

Costume Name

"Costume Name" returns the name of the Actor’s current Costume.

Parameters:

None.

Related Blocks:
{"func":"blockLooksSwitchCostume"} ,     {"func":"blockLooksNextCostume"} ,     {"func":"blockLooksFirstCostumeInGroup"} ,     {"func":"blockLooksNextCostumeInGroup"} ,     {"func":"valueLooksCostumeNum"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueLooksCostumeNum"},{"type":"string","value":":"},{"type":"wrapper","func":"valueLooksCostumeName"}]} Add to my Backpack


{"func":"blockLooksNextBackground"}

Next Background

"Next Background" changes the background to the next background.

Parameters:

None.

Related Blocks:
{"func":"blockLooksSwitchBackground"} ,     {"func":"blockLooksFirstBackgroundInGroup"} ,     {"func":"blockLooksNextBackgroundInGroup"} ,     {"func":"valueLooksBackground"} ,     {"func":"valueLooksBackgroundName"}

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


{"func":"blockLooksNextBackgroundInGroup"}

Next Background Starting With

"Next Background Starting With" changes the background to the next background costume that starts with the given text.

Parameters:

Prefix: The background will switch to the next background costume with this prefix.

Related Blocks:
{"func":"blockLooksSwitchBackground"} ,     {"func":"blockLooksNextBackground"} ,     {"func":"blockLooksFirstBackgroundInGroup"} ,     {"func":"valueLooksBackground"} ,     {"func":"valueLooksBackgroundName"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksFirstBackgroundInGroup","values":[{"type":"string","value":"Sky"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"4"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":"10"}],"next":{"func":"blockLooksNextBackgroundInGroup","values":[{"type":"string","value":"Sky"}]}}],"next":{"func":"blockLooksNextBackground"}}}} Add to my Backpack


{"func":"valueLooksBackground"}

Background #

"Background #" returns the current background number.

Parameters:

None.

Related Blocks:
{"func":"blockLooksSwitchBackground"} ,     {"func":"blockLooksNextBackground"} ,     {"func":"blockLooksFirstBackgroundInGroup"} ,     {"func":"blockLooksNextBackgroundInGroup"} ,     {"func":"valueLooksBackgroundName"}

Sample Code:
{"func":"registerBackgroundChange","values":[{"type":"string","value":"any"}],"next":{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueLooksBackground"},{"type":"string","value":":"},{"type":"wrapper","func":"valueLooksBackgroundName"}]}} Add to my Backpack


{"func":"valueLooksBackgroundName"}

Background Name

"Background Name" returns the current background name.

Parameters:

None.

Related Blocks:
{"func":"blockLooksSwitchBackground"} ,     {"func":"blockLooksNextBackground"} ,     {"func":"blockLooksFirstBackgroundInGroup"} ,     {"func":"blockLooksNextBackgroundInGroup"} ,     {"func":"valueLooksBackground"}

Sample Code:
{"func":"registerBackgroundChange","values":[{"type":"string","value":"any"}],"next":{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueLooksBackground"},{"type":"string","value":":"},{"type":"wrapper","func":"valueLooksBackgroundName"}]}} Add to my Backpack


{"func":"blockLooksSwitchCostume"}

Switch to Costume

"Switch to Costume" changes the Actor’s Costume to the Costume specified by the parameter.

Parameters:

New Costume: This parameter will be the Actor’s new Costume.

Related Blocks:
{"func":"blockLooksNextCostume"} ,     {"func":"blockLooksFirstCostumeInGroup"} ,     {"func":"blockLooksNextCostumeInGroup"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"ballet"}]}} Add to my Backpack


{"func":"blockLooksFirstCostumeInGroup"}

First Costume Starting With

"First Costume Starting With" switches to the first Costume that starts with the specified text.

Parameters:

Prefix: This parameter should be a prefix of one of the Actor’s Costumes. Perhaps you have three Costumes named "shirt-green," "shirt-blue," and "shirt-red." You can use the prefix "shirt" and it will put on the "shirt-green."

Related Blocks:
{"func":"blockLooksSwitchCostume"} ,     {"func":"blockLooksNextCostume"} ,     {"func":"blockLooksNextCostumeInGroup"}

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


{"func":"valueLooksCostumeNum"}

Costume #

"Costume #" returns the Actor’s current Costume number.

Parameters:

None.

Related Blocks:
{"func":"valueLooksCostumeName"} ,     {"func":"blockLooksSwitchCostume"} ,     {"func":"blockLooksNextCostume"} ,     {"func":"blockLooksFirstCostumeInGroup"} ,     {"func":"blockLooksNextCostumeInGroup"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueLooksCostumeNum"},{"type":"string","value":":"},{"type":"wrapper","func":"valueLooksCostumeName"}]} Add to my Backpack


{"func":"blockLooksBackgroundColor"}

Set Background Color

"Set Background Color" changes the background color to the specified color.

Parameters:

Color: This parameter indicates the color to set the background to.

Related Blocks:
{"func":"blockLooksSwitchBackground"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksBackgroundColor","values":[{"type":"color","value":"#00ffff"}]}} Add to my Backpack


{"func":"blockLooksSwitchBackground"}

Switch to Background

"Switch to Background" changes the background to the specified Costume name or number.

Parameters:

Background: This parameter indicates which background to switch to, and can be a name or a number.

Related Blocks:
{"func":"blockLooksNextBackground"} ,     {"func":"blockLooksFirstBackgroundInGroup"} ,     {"func":"blockLooksNextBackgroundInGroup"} ,     {"func":"valueLooksBackground"} ,     {"func":"valueLooksBackgroundName"}

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":"Game Over:("},{"type":"number","value":"-85"},{"type":"number","value":"0"}]}}}}} Add to my Backpack


{"func":"blockLooksSwitchBackgroundAndWait"}

Switch to Background and Wait

"Switch to Background and Wait" changes the background to the specified Costume name and waits for any code under the "When Background Switches" event block to finish.

Parameters:

Background: This parameter indicates which background to switch to.

Related Blocks:
{"func":"registerBackgroundChange"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockLooksSwitchBackgroundAndWait","values":[{"type":"string","value":"beach"}],"next":{"func":"blockLooksSetBubble","values":[{"type":"choice","value":"excited"}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"I'm so excited!!"},{"type":"number","value":"2"}]}}}} Add to my Backpack


{"func":"blockLooksFirstBackgroundInGroup"}

First Background Starting With

"First Background Starting With" changes the background to the first Background that starts with the specified text.

Parameters:

Prefix: This parameter should be a prefix of one of the Stage's background costumes. The Stage background will switch to the first costume with this prefix.

Related Blocks:
{"func":"blockLooksSwitchBackground"} ,     {"func":"blockLooksNextBackground"} ,     {"func":"blockLooksNextBackgroundInGroup"} ,     {"func":"valueLooksBackground"} ,     {"func":"valueLooksBackgroundName"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksFirstBackgroundInGroup","values":[{"type":"string","value":"Sky"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"4"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":"10"}],"next":{"func":"blockLooksNextBackgroundInGroup","values":[{"type":"string","value":"Sky"}]}}],"next":{"func":"blockLooksNextBackground"}}}} Add to my Backpack


Speech Bubbles

{"func":"blockLooksSetBubble"}

Set Bubble Type

"Set Bubble Type" changes the appearance of speech bubbles.

Parameters:

Type: This parameter is the bubble type that will appear.

Related Blocks:
{"func":"blockLooksSayFor"} ,     {"func":"blockLooksSay"} ,     {"func":"blockLooksThinkFor"} ,     {"func":"blockLooksThink"}

Sample Code:
{"func":"registerSpriteTrigger","next":{"func":"blockLooksSwitchBackgroundAndWait","values":[{"type":"string","value":"beach"}],"next":{"func":"blockLooksSetBubble","values":[{"type":"choice","value":"excited"}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"I'm so excited!!"},{"type":"number","value":"2"}]}}}} Add to my Backpack


{"func":"blockLooksSayFor"}

Say For

"Say For" displays a speech bubble with the specified text next to an Actor for the given amount of time.

Parameters:

Text: This is the text that will appear in the bubble.

NumSeconds: This is how many seconds the bubble will remain on the screen for.

Related Blocks:
{"func":"blockLooksSetLabel"} ,     {"func":"blockLooksSay"} ,     {"func":"blockLooksThinkFor"} ,     {"func":"blockLooksThink"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSetBubble","values":[{"type":"choice","value":"rectangular"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hello World"},{"type":"number","value":"2"}]}}} Add to my Backpack


{"func":"blockLooksSay"}

Say

"Say" displays a speech bubble with the specified text next to an Actor.

Parameters:

Text: This is the text that will appear in the bubble.

Related Blocks:
{"func":"blockLooksSetLabel"} ,     {"func":"blockLooksSayFor"} ,     {"func":"blockLooksThinkFor"} ,     {"func":"blockLooksThink"}

Sample Code:
{"func":"blockLooksSetSize","values":[{"type":"number","value":"100"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeSizeBy","values":[{"type":"number","value":"10"}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"New Size:"},{"type":"wrapper","func":"valueLooksSize"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]}} Add to my Backpack


{"func":"blockLooksThinkFor"}

Think For

"Think For" displays a thought bubble with the specified text next to an Actor for the given amount of time.

Parameters:

Text: This is the text that will appear in the bubble.

NumSeconds: This is how many seconds the bubble will remain on the screen for.

Related Blocks:
{"func":"blockLooksSetLabel"} ,     {"func":"blockLooksSayFor"} ,     {"func":"blockLooksSay"} ,     {"func":"blockLooksThink"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"rightedge"}]}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"Turn me around!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockLooksThink"}

Think

"Think" displays a thought bubble with the specified text next to an Actor.

Parameters:

Text: This is the text that will appear in the bubble.

Related Blocks:
{"func":"blockLooksSetLabel"} ,     {"func":"blockLooksSayFor"} ,     {"func":"blockLooksSay"} ,     {"func":"blockLooksThinkFor"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueVar","name":"Clone"}],"next":{"func":"blockLooksThink","values":[{"type":"string","value":"I want another"},{"type":"wrapper","func":"valueControlLastClonedActor"},{"type":"string","value":"!"}]}} Add to my Backpack


{"func":"blockLooksSayStyledFor"}

Say For With Style

"Say For With Style" displays a speech bubble with the specified text and formatting for the given amount of time.

Parameters:

Text: This is the text that will appear in the bubble.

NumSeconds: This is how many seconds the bubble will remain on the screen for.

Style: This parameter is the type of bubble or box that the text will appear in.

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

Border Color: This parameter indicates which color the border of the bubble or box will be. Select a color from the color wheel, or manually select a color with a hexadecimal number.

Background Color: This parameter indicates which color the background of the bubble or box will be. Select a color from the color wheel, or manually select a color with a hexadecimal number.

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":"blockLooksSayStyled"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSayStyledFor","values":[{"type":"string","value":"Look! I'm speaking in a dialog box!"},{"type":"number","value":3},{"type":"choice","value":"bottom message box"},{"type":"color","value":"#eeeeee"},{"type":"color","value":"#ffffff"},{"type":"color","value":"#000000"},{"type":"choice","value":"normal"},{"type":"choice","value":"18"},{"type":"choice","value":"Arial,Helvetica,sans-serif"}]}} Add to my Backpack


{"func":"blockLooksSayStyled"}

Say With Style

"Say With Style" displays a speech bubble with the specified text and formatting.

Parameters:

Text: This is the text that will appear in the bubble.

Style: This parameter is the type of bubble or box that the text will appear in.

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

Border Color: This parameter indicates which color the border of the bubble or box will be. Select a color from the color wheel, or manually select a color with a hexadecimal number.

Background Color: This parameter indicates which color the background of the bubble or box will be. Select a color from the color wheel, or manually select a color with a hexadecimal number.

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":"blockLooksSayStyledFor"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSayStyled","values":[{"type":"string","value":"Look! I'm speaking in a dialog box!"},{"type":"choice","value":"bottom message box"},{"type":"color","value":"#eeeeee"},{"type":"color","value":"#ffffff"},{"type":"color","value":"#000000"},{"type":"choice","value":"normal"},{"type":"choice","value":"18"},{"type":"choice","value":"Arial,Helvetica,sans-serif"}]}} Add to my Backpack


{"func":"blockLooksSetLabel"}

Set Label

"Set Label" makes text appear on the center of your Actor.

Parameters:

Label: This parameter is the text that will appear.

Related Blocks:
{"func":"blockLooksSayFor"} ,     {"func":"blockLooksSay"} ,     {"func":"blockLooksThinkFor"} ,     {"func":"blockLooksThink"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueLooksCostumeNum"},{"type":"string","value":":"},{"type":"wrapper","func":"valueLooksCostumeName"}]} Add to my Backpack


Layers

{"func":"blockLooksLayer"}

Set Layer

"Set Layer" sets the layer the current Actor is on.

Parameters:

Layers: This parameter indicates the visual layer to set the Actor to.

Related Blocks:
{"func":"valueLooksLayer"}

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


{"func":"valueLooksLayer"}

Get Layer

"Get Layer" returns the layer the current Actor is on.

Related Blocks:
{"func":"blockLooksLayer"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueLooksLayer"},{"type":"string","value":"5"}]}],"containers":[{"func":"blockLooksLayer","values":[{"type":"number","value":5}]}]} Add to my Backpack


{"func":"blockLooksGoFront"}

Go To Front

"Go To Front" makes an Actor appear in front of all the other Actors on the Stage.

Parameters:

None.

Related Blocks:
{"func":"blockLooksGoBack"} ,     {"func":"blockLooksMoveBack"} ,     {"func":"blockLooksMoveFront"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpAnd","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"wrapper","func":"valueLooksIsHidden"}]}],"containers":[{"func":"blockLooksShow","next":{"func":"blockLooksGoFront"}}]} Add to my Backpack


{"func":"blockLooksGoBack"}

Go To Back

"Go To Back" makes an Actor hide behind all the other Actors on the Stage.

Parameters:

None.

Related Blocks:
{"func":"blockLooksGoFront"} ,     {"func":"blockLooksMoveBack"} ,     {"func":"blockLooksMoveFront"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpAnd","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"wrapper","func":"valueLooksIsHidden"}]}],"containers":[{"func":"blockLooksShow","next":{"func":"blockLooksGoBack"}}]} Add to my Backpack


{"func":"blockLooksMoveBack"}

Go Back

"Go Back" makes an Actor go back the specified amount of visual layers.

Parameters:

Layers: This parameter indicates how many visual layers the Actor should go back.

Related Blocks:
{"func":"blockLooksGoFront"} ,     {"func":"blockLooksGoBack"} ,     {"func":"blockLooksMoveFront"}

Sample Code:
{"func":"registerCloned","next":{"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockLooksMoveBack","values":[{"type":"number","value":"1"}]}}} Add to my Backpack


{"func":"blockLooksMoveFront"}

Go Front

"Go Front" makes an Actor go forward the specified amount of visual layers.

Parameters:

Layers: This parameter indicates how many visual layers the Actor should go forward.

Related Blocks:
{"func":"blockLooksGoFront"} ,     {"func":"blockLooksGoBack"} ,     {"func":"blockLooksMoveBack"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingKeyPressed","values":[{"type":"choice","value":"f"}]}],"containers":[{"func":"blockLooksMoveFront","values":[{"type":"number","value":"1"}]}]} Add to my Backpack


Visibility

{"func":"blockLooksShow"}

Show

"Show" makes an Actor show up on the Stage.

Parameters:

None.

Related Blocks:
{"func":"blockLooksHide"} ,     {"func":"valueLooksIsHidden"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpAnd","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"wrapper","func":"valueLooksIsHidden"}]}],"containers":[{"func":"blockLooksShow","next":{"func":"blockLooksGoFront"}}]} Add to my Backpack


{"func":"blockLooksHide"}

Hide

"Hide" makes an Actor disappear from the Stage.

Parameters:

None.

Related Blocks:
{"func":"blockLooksShow"} ,     {"func":"valueLooksIsHidden"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"GameOver"}],"next":{"func":"blockLooksHide"}} Add to my Backpack


{"func":"valueLooksIsHidden"}

Is Hidden

"Is Hidden" returns true when the Actor whose code you are editing is hidden and false when the Actor is shown.

Parameters:

None.

Related Blocks:
{"func":"blockLooksShow"} ,     {"func":"blockLooksHide"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpAnd","values":[{"type":"wrapper","func":"valueVar","name":"Playing"},{"type":"wrapper","func":"valueLooksIsHidden"}]}],"containers":[{"func":"blockLooksShow","next":{"func":"blockLooksGoFront"}}]} Add to my Backpack


{"func":"blockLooksChangeSizeBy"}

Change Size

"Change Size" changes the size of an Actor by the given percentage value.

Parameters:

Growth size: This parameter indicates by what percentage the Actor will grow. You can use a negative number to make your Actor shrink.

Related Blocks:
{"func":"blockLooksSetSize"} ,     {"func":"valueLooksSize"}

Sample Code:
{"func":"blockLooksSetSize","values":[{"type":"number","value":"100"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeSizeBy","values":[{"type":"number","value":"10"}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"New Size:"},{"type":"wrapper","func":"valueLooksSize"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]}} Add to my Backpack


{"func":"blockLooksSetSize"}

Set Size

"Set Size" sets the size of an Actor to the given percentage value.

Parameters:

Growth size: This parameter indicates to what percentage of its normal size the Actor will be set. Numbers below 100 will make the Actor shrink while numbers above 100 will make it grow.

Related Blocks:
{"func":"blockLooksChangeSizeBy"} ,     {"func":"valueLooksSize"}

Sample Code:
{"func":"blockLooksSetSize","values":[{"type":"number","value":"100"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeSizeBy","values":[{"type":"number","value":"10"}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"New Size:"},{"type":"wrapper","func":"valueLooksSize"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]}} Add to my Backpack


{"func":"valueLooksSize"}

Size

"Size" returns the size of an Actor.

Parameters:

None.

Related Blocks:
{"func":"blockLooksChangeSizeBy"} ,     {"func":"blockLooksSetSize"}

Sample Code:
{"func":"blockLooksSay","values":[{"type":"string","value":"My size:"},{"type":"wrapper","func":"valueLooksSize"}]} Add to my Backpack


Special Effects

{"func":"blockLooksChangeEffect"}

Change Effect

"Change Effect" changes the specified effect by the specified value.

Parameters:

Effect: This parameter indicates what type of effect you want to change. Options include "color," "fisheye," "whirl," "pixelate," "mosaic," "brightness," and "ghost."

Intensity: This parameter is a number that indicates how much intensity of the effect you are changing should increase.

Related Blocks:
{"func":"blockLooksSetEffect"} ,     {"func":"blockLooksClearEffects"}

Sample Code:
{"func":"blockLooksSetEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"0"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"25"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}],"next":{"func":"blockLooksClearEffects"}}} Add to my Backpack


{"func":"blockLooksSetEffect"}

Set Effect

"Set Effect" sets the specified effect to the specified value.

Parameters:

Effect: This parameter indicates what type of effect you want to set. Options include "color," "fisheye," "whirl," "pixelate," "mosaic," "brightness," and "ghost."

Intensity: This parameter is a number that indicates the intensity of the effect.

Related Blocks:
{"func":"blockLooksChangeEffect"} ,     {"func":"blockLooksClearEffects"}

Sample Code:
{"func":"blockLooksSetEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"0"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"25"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}],"next":{"func":"blockLooksClearEffects"}}} Add to my Backpack


{"func":"blockLooksClearEffects"}

Clear Graphic Effects

"Clear Graphic Effects" resets all the graphic effects of an Actor.

Parameters:

None.

Related Blocks:
{"func":"blockLooksChangeEffect"} ,     {"func":"blockLooksSetEffect"}

Sample Code:
{"func":"blockLooksSetEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"0"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockLooksChangeEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"25"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}],"next":{"func":"blockLooksClearEffects"}}} Add to my Backpack


AR

{"func":"blockLooksVideoTransparency","values":[{"type":"number","value":"50"}]}

Set Video Transparency

"Set Video Transparency" changes the transparency of the video feed, letting all, some, or none of the Stage's background show through.

Parameters:

Video transparency: This parameter dictates how transparent the video feed will be. 0% will make the video opaque, obscuring the background; 100% will make the video fully transparent or invisible, revealing the background.

Related Blocks:
{"func":"blockLooksVideo"} ,     {"func":"blockLooksVideoMask"} ,     {"func":"blockLooksTakeScreenshot"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksVideo","values":[{"type":"choice","value":"on"}],"next":{"func":"blockLooksVideoTransparency","values":[{"type":"number","value":"50"}]}}} Add to my Backpack


{"func":"blockLooksTakeScreenshot"}

Take Screenshot

"Take Screenshot" captures an image of the project and saves the image to your computer or device.

Parameters:

None.

Related Blocks:
{"func":"blockLooksVideo"} ,     {"func":"blockLooksVideoTransparency"} ,     {"func":"blockLooksVideoMask"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksVideo","values":[{"type":"choice","value":"on"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":2}],"next":{"func":"blockLooksTakeScreenshot"}}}} Add to my Backpack


{"func":"blockLooksVideoGetColor","values":[{"type":"string","value":""}]}

Get Color From Video

"Get Color From Video" checks the color in the video feed underneath the current Actor and saves that color into the specified variable.

Parameters:

Variable: This is the name of the variable you want to save the color into.

Related Blocks:
{"func":"valueSensingVideoGetColor"} ,     {"func":"valueSensingVideo"}

Sample Code:
{"func":"blockLooksVideoGetColor","values":[{"type":"wrapper","func":"valueScriptVar","name":"myColor"}],"next":{"func":"blockPenSetColor","values":[{"type":"wrapper","func":"valueScriptVar","name":"myColor"}]}} Add to my Backpack


{"func":"blockLooksVideo","values":[{"type":"choice","value":"on"}]}

Turn Video On/Off

"Turn Video On/Off" turns the video feed on (normally or mirrored) or off as specified.

Parameters:

Video state: This parameter dictates whether to turn the video on normally, on but horizontally flipped, or off.

Related Blocks:
{"func":"blockLooksVideoTransparency"} ,     {"func":"blockLooksVideoMask"} ,     {"func":"blockLooksTakeScreenshot"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksVideo","values":[{"type":"choice","value":"on"}]}} Add to my Backpack


{"func":"blockLooksVideoMask","values":[{"type":"choice","value":"oval"},{"type":"number","value":"250"},{"type":"number","value":"300"}]}

Mask Video

"Mask Video" masks the outer bounds of the video feed, cropping the video to a smaller shape.

Parameters:

Shape: This parameter determines what shape the video should be masked to.

Width: This parameter sets how wide the masked video should be.

Height: This parameter sets how tall the masked video should be.

Related Blocks:
{"func":"blockLooksVideo"} ,     {"func":"blockLooksVideoTransparency"} ,     {"func":"blockLooksTakeScreenshot"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksVideo","values":[{"type":"choice","value":"on"}],"next":{"func":"blockLooksVideoTransparency","values":[{"type":"number","value":100}],"next":{"func":"blockLooksVideoMask","values":[{"type":"choice","value":"oval"},{"type":"number","value":400},{"type":"number","value":450}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"Live Video"}]}}}}} Add to my Backpack