Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (January 2020) |
Size is a value given to all sprites. The default is 100% (the sprite at its normal size),[1] but can be changed with the size blocks. Decreasing it will cause the image to shrink, and increasing it will cause it to grow. If the value is very small, it cannot be decreased further.[2] To hide a sprite, use the Hide block instead.
When a costume drawn in bitmap mode is enlarged, it pixelates. To avoid this, use drawings in vector mode.
Limitations
The minimum and maximum sizes of sprites vary depending on its default size and its shape: the minimum is the smallest size at which the dimensions of the sprite are both at least 5,[2] and the maximum is the largest size at which at most one third of either dimension of the sprite is off-screen when the sprite is in the center.[3] In a 1x1 pixel sprite, the size value can be set to a maximum of 54000%. The limit can be avoided.
Possible Uses
- A button that quickly changes size to mimic a button press
- Resize a sprite that was drawn smaller or larger than wanted
- A painting application to show what size a line or shape is so that one can change it the way one prefers.
- A platformer with an element that changes the size of the character
- An animation with a sprite decreasing in size to achieve the effect of moving farther away
Related Blocks
A sprite's size can be altered or read with these blocks:
change size by ()
— This block will change the size value. One can change it by a positive or negative number, which will move the value up or down.set size to ()%
— This block will set the size to a specific value.size
— This block will report the current size of its sprite.[ v] of ( v)
— A block that reports the value of any sprite's x position, y position, direction, costume number/name, size, volume or variables.