This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Scrolling the stage was a planned new feature of Scratch 2.0. It allowed for the stage to be panned around, repeating the current scene, without creating a sprite for it. However, it was removed in the alpha version due to issues with design.[1]
Related Blocks
There were 5 blocks related to this feature. None of them work in the current version, even when restored from a project containing them.[2]
Note: | Click on the blocks to learn more. |
scroll right ()::motion
scroll up ()::motion
align scene [ v]::motion
x scroll::sensing reporter
y scroll::sensing reporter
Example Uses
This feature could be used in the following ways:
- Creating a repetitive, movable background
- Simply moving the background
- Making the moving background bounce
when gf clicked forever repeat until <(x scroll::sensing) > [478]> scroll right (1)::motion end repeat until <(x scroll::sensing) < [1] > scroll right (-1)::motion end end when gf clicked forever repeat until <(y scroll::sensing) > [358]> scroll up (1)::motion end repeat until <(y scroll::sensing) < [1] > scroll up (-1)::motion end end
This cannot replace a scrolling map.
Suggestions about scrolling
Multiple users have suggested blocks that would be used to scroll the stage in the suggestions forum. There have also been suggestions to have size blocks for the stage, allowing the background to be scaled up or down, similar to the size blocks for sprites.
See Also
References
- ↑ natalie. (1/11/2012). "We were excited about adding it too! But then we began discussing an alternative approach that would make it more powerful and possibly easier to make a lot of projects, but will require a lot more thinking and then iterations and thus won't be ready in time for the initial 2.0 launch." post:1494
- ↑ https://github.com/LLK/scratch-vm/blob/f930aa61a923c055496ae303a960d39bbb62ebb4/src/blocks/scratch3_motion.js#L38