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. (September 2018) |
Scratch imposes limits on both the maximum and minimum size of a sprite depending on the dimensions of its costume and the stage. This tutorial explains how to override the costume size limit.
Warning: | There is a reason Scratch imposes these limits. Making sprites too large may use a lot of memory, causing Scratch to lag or crash. Approach the methods shown below with caution, and ensure you know what you're doing. |
Tutorial
To make a sprite larger than it is normally possible, create a costume with a width and height of 0. This can be done by setting eraser size to a large number, such as 100, and drawing a large "dot". Then use these scripts:
when green flag clicked set [costume v] to (costume [number v])//this variable remembers the previous costume switch costume to (blank v)//this is the 0x0 costume which allows a large size set size to (. . .::grey)%//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 set large size (large size) set [costume v] to (costume [number v])//this remembers the costume number switch costume to (blank v)//the 0x0 costume set size to (large size)% switch costume to (costume)
This allows sizes up to infinity. It can be very useful for scrollers.
Note: | To make a sprite smaller than normally possible, simply do the reverse. Create a large sprite (use the rectangle tool to make a rectangle as big as the stage or larger), then switch to the smaller one after changing the size. |