From Test-Scratch-Wiki
This article or section documents a feature not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Single Stepping is a tool in Scratch that runs scripts slower or faster, and performs each block individually. Single Stepping can be accessed through the "Edit" option in the toolbar:
What it Does
By clicking on "Start Single Stepping" it starts the process with the current option. By default it is "Flash Blocks (Slow)". These are all the possible options in can be set it to:
Turbo Speed
In turbo speed, all scripts run at extreme speed. This is very useful for speeding up mathematical projects, however makes features such as graphic effects and clicking on sprites lag quite a bit.
In the Flash Player there is also turbo speed named "Turbo Mode", accessed by shift-clicking the Green Flag. This is much faster than the Squeak (offline) turbo speed, making projects up to 50 times faster. Online turbo speed and offline differs greatly.
Normal
Just runs all the scripts as they would normally be; it's just like having Single Stepping turned off.
Flash Blocks (fast)
Runs a project at normal speed, however, when a block is active, it turns yellow. This is useful for .
Flash Blocks (slow)
Runs a project extremely slowly, and turns blocks yellow when they are active.
Uses
This can be useful for:
- Speeding up mathematical projects
- Finding the source of a glitch
- Finding out exactly how a project works
- Humor and amusement
Detection
- Main article: Detecting Turbo Mode
There are simple scripts that can be made that detect if Turbo Speed or Single Stepping is on.