In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Change Size by () (block)

Change Size by ()
2.0 Change Size by ().png
Category Looks
Type Stack

The Change Size by () block is a Looks block and a Stack block. The block changes its sprite's size by the specified amount. The default sprite size is 100; size values below that percentage are for shrunken sprites, and size values above it are for overlarge sprites.

Example Uses

As this block changes its sprite's size, it is used whenever a sprite's size must be changed. Some common uses are:

  • A sprite in a 3D world that must change its size as it moves along the plain
  • A growing object
  • A shrinking object
  • Changing the size of a paintbrush for painting
  • Draining a pool of water by shrinking the water sprite

Workaround

Main article: List of Block Workarounds

The block can be replicated with the following code:

set size to ((size) + (amount))%

However, this is not exact because the main block rounds it and the math block gives exact numbers.[citation needed]

See Also

  • This page was last modified on 24 January 2014, at 15:28.