Category:Actions

Rotates a sprite or group of sprites by the selected amount. When used in a behavior, the turn command will give sprite the appearance that it is spinning.

Examples

Display Area Code

Examples

The toothbrush has been turned to make it look like it is in the sprite’s hand.

Parameters

NameDescription
sprite A sprite or group of sprites. Examples of blocks to attach here are `sprite name`, `costume` and `this/other sprite`. `gamelab_allSpritesWithAnimation`
direction The direction the sprite will rotate, either "left" or "right".
degrees The amount of rotation in degrees. An `integer` block can be used here or any other combination of blocks that produces a numerical value. Negative values will reverse the direction of rotation.

Found a bug in the documentation? Let us know at documentation@code.org