From Test-Scratch-Wiki

(Redirected from Eng: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.

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


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 #)
switch to costume [dot v] //this is the 1x1 costume which allows a large size
set size to (...) //insert a large value
switch to costume [A costume v] //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 #)
switch costume to [dot v] //The 1x1 dot
set size to (LargeSize) 
switch costume to [A costume v]

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.