Direction in degrees. Defaults to 90 (right). Can be from -179 to 180.
Visual effects on the target. All default to 0.
The sprite's size. Default is 100.
OptionalsoundMirrors custom state.
The language to use for speech synthesis, in the text2speech extension. Initialized to null; on extension load it may be set from the editor locale.
Defaults to 100.
X scale then Y scale, both from 100. A negative scale means that the target should be flipped on that axis.
RGB channels from [0-255]
RGB channels from [0-255]
Create a new variable. If the ID is already used, silently does nothing. isCloud is ignored if the sprite is not the stage or if the cloud variable limit has been reached.
OptionalisCloud: booleanDelete the costume at a given index. Returns the deleted costume if one exists at that index, otherwise null.
Remove this target's monitors from the runtime state and remove the target-specific monitored blocks (e.g. local variables, x-position). Does not delete stage monitors like backdrop name.
Removes the variable with the given id from the dictionary of variables.
Create a clone of the variable with the given id. Returns null if the original variable was not found.
OptionaloptKeepOriginalId: booleanFixes up variable references in this target avoiding conflicts with pre-existing variables in the same scope. Used when uploading a target as a new sprite.
Get the names of all the variables of the given type that are in scope for this target.
Optionaltype: VM.VariableTypeDefaults to the scalar type.
OptionalskipStage: booleanOptional flag to skip the stage.
Get the index of a costume with a given name. If the costume doesn't exist, returns -1.
Make sure this target is not the stage before calling this method.
Make sure this target and the target being moved behind are not the stage before calling this method.
Make sure this target is not the stage before calling this method.
Make sure this target is not the stage before calling this method.
Make sure this target is not the stage before calling this method.
Initialize the audio player for this sprite or clone.
Create a drawable with this.renderer.
The layer group this drawable should be added to (a StageLayering value).
Returns true if the target is not the stage and is not a clone.
RGB channels from [0-255]
Optionalfence: SimpleRectangleLook for a variable by its ID in this target. If it doesn't exist in this target, will check if it exists in the stage target. If it still doesn't exist, returns undefined.
OptionalskipStage: booleanOptionalskipStage: booleanOptionalskipStage: booleanCreate a clone of this sprite if the clone limit has not been reached.
Called by runtime when the green flag is pressed.
Called by the runtime when the project is stopped.
Rename the costume at a given index. Will throw an error if the index is out of bounds. If the new name is already used, it may be modified.
Renames the variable with the given id to newName.
Move the costume from one index to another. Returns true if any change was made.
Share the given variable-referencing fields with the target of the given id, resolving conflicts.
Update the current costume index. If index is not finite, it will be converted to 0. If index is not in the list, it will wrap around.
Change the sprite's direction. The direction will be wrapped as needed to fit in the expected range.
Change the sprite's size. The given size may be fenced to make the target fit on screen and isn't negative.
Update the sprite's position. The given coordinates may be fenced to make the target fit on screen. Set force to true to force the sprite to move even if it's being dragged.
Optionalforce: booleanShare a local variable with a sprite, merging with one of the same name and type if it exists.
Share a local variable (and given references for that variable) to the stage.
Update an edge-activated hat block value.
The old value for the edge-activated hat.
The index of the current costume.