- This article is about the rotation style feature. For the block, see Set Rotation Style () (block).
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 way than the direction it has been set to.
Styles
There are three rotation styles: all around, left-right, and don't rotate.
All Around (default)
"All around" rotation visually points the sprite in the direction it is facing. However, this will make the sprite appear upside-down if it is facing left.
Left-Right
The "left-right" rotation style flips the sprite right or left. If the sprite's direction is between 1° and 180°, the costume will not appear rotated. If the sprite's direction is between -179° and 0°, the costume will be mirrored around the y axis (horizontally). This style is commonly used for animations.
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.
Note: | The sprite's visual direction will not change, but the direction it moves with the Move () Steps block 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) ), 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
This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
In Scratch 1.x, there were no blocks related to this value, but a few Scratch modifications had some.
The Sprite Header Pane had three buttons to change it. The top one, with the rotation symbol, was full rotation. The middle was left-right. The bottom was no rotation.
Scratch 2.0
This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Scratch 2.0 introduced a block to do this: Set Rotation Style (). Its dropdown menu could be used to select which rotation style should be set.
There was a non-block method similar to Scratch 1.x to change a sprite's rotation style. One could click the info (i) icon next to any sprite in the Scratch 2.0 menu. An options pane would come up with buttons to change the rotation style similar to Scratch 1.x.
Scratch 3.0
In Scratch 3.0, to change rotation style, the block can be utilized or one may click the direction input in the Sprite Header Pane and in the box that pops up, there are three buttons. The first button sets the rotation style to all around, the second sets it to left-right, and the third sets it to don't rotate.
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