|Please expand this article or section. You can help by talk page. (September 2018)if you are an editor. More information might be found in a section of the|
|Warning:||Making sprites too large may use a lot of memory, causing Scratch to lag or crash.|
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.|