ScratchData LogoScratchData
Back to rdococ's profile

Move and resize sprites without limits

RDrdococ•Created March 13, 2019
Move and resize sprites without limits
1
1
4 views
View on Scratch

Instructions

These are several blocks that will help you when creating a scrolling engine, or trying to do collision offscreen. "set size to (...) % without limits" allows you to set the size of a sprite without Scratch's automatic limit. To make a sprite larger, the block switches to a tiny costume when resizing to fool Scratch into allowing much larger sizes, and the other way around for making a sprite smaller. "go to x: (...) y: (...) without limits" works similarly. It sets the sprite's size to a giant amount and uses the huge costume when moving the sprite, so that it tricks Scratch into thinking it's still completely onscreen (which is technically true when using the huge costume and at a huge size, unless the position is *extremely* far offscreen). The other blocks are either implemented using these two, or use a similar trick to the above.

Description

These probably still have their limitations, but those limitations are much, much wider, and are the same for every sprite regardless of its current size and shape. The minimum size is 1, and the maximum size seems to be 27000. Not quite limitless, but still. The maximum position without any rotation or other effects, seems to be x: 65025, y: 48765. Both will probably vary with different rotations and effects.

Project Details

Project ID293582851
CreatedMarch 13, 2019
Last ModifiedMarch 13, 2019
SharedMarch 13, 2019
Visibilityvisible
CommentsAllowed