A sprite showing all 3 rotation styles, with the direction set to -45°.

A sprite's rotation style controls which directions a sprite can face in. These directions are all in accordance with the analogous rotation system used by Scratch. Depending on the rotation style of a sprite, the sprite may appear to be facing a different direction to its true value.

Styles

There are three rotation styles: full rotation, left-right, and no rotation.

Full Rotation

"Full rotation" rotation visually points the sprite in the direction it is facing.

Left-Right

The left-right rotation style flips the sprite right or left. If the sprite's direction is between 0° and 180°, the costume will not appear rotated. If the sprite's direction is between 0° and -180°, the costume will be mirrored around the Y axis.

Don't Rotate

If a sprite's rotation style is set to "don't rotate", the visual appearance will not change as it changes direction.

Warning Note: The sprite's appearance will not change, but the direction itself can still be modified.

For example, if the sprite is facing 90° to the right, and one runs a block that points it down (such as point in direction (180 v)), the sprite will still appear to be looking to the right, but running a move (10) steps block will make it move 10 "steps" down (like using change y by (-10))

Changing Styles

Scratch 1.x

The sprite header pane.

In Scratch 1.x, there are no blocks related to this value, but a few Scratch modifications have some.

The Sprite Header Pane has three buttons to change it. The top one, with the rotation symbol, is full rotation. The middle is left-right. The bottom is no rotation.


Scratch 2.x

Changing a sprite's rotation style in 2.0

Scratch 2.0 introduces a block to do this: Set Rotation Style (). Its dropdown menu can be used to select how a sprite's rotation style should be set.

There is a non-block method similar to Scratch 1.x to change a sprite's rotation style. Click the info (i) icon next to any sprite in the Scratch 2.0 menu. An options pane will come up with buttons to change the rotation style similar to Scratch 1.x.

Example Uses

This value can be used in a number of ways:

  • Making moving objects move in a specific direction without turning
  • Making objects flip

See Also