(Redirected from Avoiding the Costume Size Limit)

Scratch imposes limits on both the maximum and minimum size of a sprite depending on the dimensions of its costume. For the default Scratch Cat, this is between 5 to 535 percent. For a single pixel, it is 100 to 54,000 percent. For a costume the size of the stage (480x360), it is 1 to 150 percent. This tutorial explains how to circumvent this limit.

Note Warning: Making sprites too large may use a lot of memory, causing Scratch to lag or even crash.

Tutorial

To make a sprite larger than allowed, create a 1x1 costume after your original, then apply these scripts:

when gf clicked
set [costume v] to (costume #) //this variable remembers the previous costume
switch costume to [dot v] //this is the 1x1 costume which allows a large size
set size to (...) //insert a large value
switch costume to (costume) //the previous size remains when switching to the larger costume

Another way is to use a custom block:

define Super Big (LargeSize)
set [costume v] to (costume #) //this remembers the costume number
switch costume to [dot v] //The 1x1 dot
set size to (LargeSize) 
switch costume to (costume)

This can be very useful for scrollers.

Note Note: To make a sprite smaller than allowed, simply do the reverse. Create a large sprite (480x360), then switch to the smaller one after changing the size.

See Also