- 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 direction to its true value.
There are three rotation styles: all around, left-right, and no rotation.
All Around (default)
"All around" rotation visually points the sprite in the direction it is facing.
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.
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 appearance 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 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))
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.
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.
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.
This value can be used in a number of ways:
- Making moving objects move in a specific direction without turning
- Making objects flip