(Added a page about Warp in 2.0.)
 
m (Category already added within template)
 
(35 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{unreleased}}
+
{{obsolete feature}}
{{expand}}
+
{{block
{{Block
 
 
|name      = All at Once
 
|name      = All at Once
 
|image      = File:All at once.png
 
|image      = File:All at once.png
|imagewidth = 91px
 
 
|category  = [[Control Blocks|Control]]
 
|category  = [[Control Blocks|Control]]
 
|type      = [[C Block|C]]
 
|type      = [[C Block|C]]
|added      = 2.0
+
|added      = 2.0 alpha
 +
|removed    = 2.0 alpha
 
}}
 
}}
The '''all at once''' block is a [[Control Blocks|Control block]] and a [[C Blocks|C block]]. It runs the blocks inside it at [[Turbo Mode|turbo speed]]. It is based on the ''warp'' block in [[Snap!]], and was originally called warp in Scratch as well. This block may replace a separate turbo mode, as it is better for the programmer to set turbo speed themselves, and most of the time turbo speed is only needed for a couple [[scripts]].
+
The '''All at Once''' [[Blocks|block]] was a [[Control Blocks|Control block]] and a [[C Block|C block]] that was introduced in the [[Scratch 2.0]] [[Development of Scratch 2.0#Alpha|alpha]]. It ran the blocks inside it [[Single Frame|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 [[Single Stepping#Turbo Speed|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 of [[script]]s.
  
==Example Uses==
+
This block was removed later in the alpha of Scratch 2.0; in the official release, [[Custom Blocks|custom blocks]] instead have a checkbox called "run without screen refresh", which runs the blocks in an instant.
 +
 
 +
== Workaround ==
 +
Because custom blocks now have the "run without screen refresh" option, this block may be replaced with them.
 +
<scratchblocks version="2">
 +
define all at once
 +
. . .
 +
</scratchblocks>
 +
Then, use the custom block to run the script underneath the define "all at once" hat block above:
 +
<scratchblocks version="2">
 +
when gf clicked
 +
all at once:: custom
 +
</scratchblocks>
 +
 
 +
== Example Uses ==
 
This block can be used in some of the following ways:
 
This block can be used in some of the following ways:
*Speeding up mathematical projects  
+
* Speeding up mathematical projects
*Rendering [[3D]]
+
* Rendering [[Three-Dimensional Projects|3D]]
*Doing complicated calculations
+
* Doing complicated calculations
*Removing the lag in ordinary loop blocks such as [[Repeat () (block)|repeat]]
+
* Removing the lag in ordinary loop blocks such as {{b|Repeat ()}}
  
{{Control Blocks}}
+
== See Also ==
 +
* [[Single Frame]]
 +
{{Control Blocks}}{{Removed Blocks}}
 
[[Category:Control Blocks]][[Category:Scratch 2.0]]
 
[[Category:Control Blocks]][[Category:Scratch 2.0]]

Latest revision as of 20:01, 12 January 2020

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 of scripts.

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

Workaround

Because custom blocks now have the "run without screen refresh" option, this block may be replaced with them.

define all at once
. . .

Then, use the custom block to run the script underneath the define "all at once" hat block above:

when gf clicked
all at once:: custom

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