(Added workaround)
Line 11: Line 11:
  
 
This block was removed later in the alpha of Scratch 2.0; in the official release, [[Custom Blocks|custom blocks]] instead have a checkbox to run in an instant, called "run without screen refresh".
 
This block was removed later in the alpha of Scratch 2.0; in the official release, [[Custom Blocks|custom blocks]] instead have a checkbox to run in an instant, called "run without screen refresh".
 +
 +
==Workaround==
 +
As mentioned above, here is a workaround for the block being replicated by using a custom block that runs without screen refresh:
 +
<scratchblocks>
 +
define all at once // run without screen refresh
 +
. . .
 +
</scratchblocks>
 +
and then use the created block
 +
<scratchblocks>all at once // category=custom</scratchblocks>
 +
to run the selected blocks from the define all at once block above.
  
 
==Example Uses==
 
==Example Uses==
Line 19: Line 29:
 
*Removing the lag in ordinary loop blocks such as {{b|Repeat ()}}
 
*Removing the lag in ordinary loop blocks such as {{b|Repeat ()}}
  
== See Also ==
+
==See Also==
 
*[[Single Frame]]
 
*[[Single Frame]]
 
 
{{Control Blocks}}{{Removed Blocks}}
 
{{Control Blocks}}{{Removed Blocks}}
 
[[Category:Control Blocks]][[Category:Scratch 2.0]]
 
[[Category:Control Blocks]][[Category:Scratch 2.0]]

Revision as of 02:54, 6 October 2014

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
All at Once
All at once.png
Category Control
Type C
Introduced in 2.0 alpha
Removed in 2.0 alpha

The All at Once block was a Control block and a C block that was introduced in the Scratch 2.0 alpha. It ran the blocks inside it atomically. It is based on the Warp block in Snap!, and was originally called Warp Speed in Scratch as well. This block was planned to serve as a temporary Turbo-Speed for designated scripts, as Turbo-Speed with the whole project can cause timing issues, and it is often only needed for a couple scripts.

This block was removed later in the alpha of Scratch 2.0; in the official release, custom blocks instead have a checkbox to run in an instant, called "run without screen refresh".

Workaround

As mentioned above, here is a workaround for the block being replicated by using a custom block that runs without screen refresh:

define all at once // run without screen refresh
. . .

and then use the created block

all at once // category=custom

to run the selected blocks from the define all at once block above.

Example Uses

This block can be used in some of the following ways:

  • Speeding up mathematical projects
  • Rendering 3D
  • Doing complicated calculations
  • Removing the lag in ordinary loop blocks such as Repeat ()

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.