m
 
(27 intermediate revisions by 19 users not shown)
Line 1: Line 1:
 
{{obsolete feature}}
 
{{obsolete feature}}
 
{{block
 
{{block
|name      = All at Once
+
| name      = All at Once
|image      = File:All at once.png
+
| image      = all at once{
|category  = [[Control Blocks|Control]]
+
} :: control
|type      = [[C Block|C]]
+
| sb        = 2.0
|added      = 2.0 alpha
+
| category  = [[Control Blocks|Control]]
|removed    = 2.0 alpha
+
| type      = [[C Block|C]]
 +
| added      = 2.0 alpha
 +
| removed    = 2.0 alpha
 
}}
 
}}
The '''All at Once''' [[Blocks|block]] was a [[Control Blocks|Control block]] and a [[C Blocks|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 [[script]]s.
+
The '''all at once''' block was a [[C Block|C block]] and a [[Control Blocks|Control block]]. The block ran the blocks inside it [[Single Frame|atomically]]. It was based on the Warp block in [[Snap!]], and was originally called Warp Speed in Scratch as well.{{citation needed|date=September 2020}} The block was planned to serve as a temporary [[Turbo Mode|turbo mode]] for designated scripts; using turbo mode, where the whole project was ran faster, can cause timing issues, and it is often only needed for a couple of [[script]]s.
  
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".
+
The block was removed later in the alpha version of Scratch 2.0; in the official release, [[Custom Blocks|custom blocks]] instead have an option entitled "run without screen refresh", which runs the script faster. However, using this feature with a wait block may result in misbehaving code.
  
==Example Uses==
+
== Workaround ==
This block can be used in some of the following ways:
+
The block can be replicated by utilizing the "run without screen refresh" option:
*Speeding up mathematical projects  
+
<scratchblocks>
*Rendering [[Three Dimensional Projects|3D]]
+
when green flag clicked
*Doing complicated calculations
+
all at once
*Removing the lag in ordinary loop blocks such as {{b|Repeat ()}}
+
 
 +
define all at once
 +
. . .
 +
</scratchblocks>
 +
 
 +
== Example Uses ==
 +
Some common uses for the all at once block are:
 +
* Speeding up mathematical projects
 +
* Rendering [[Three-Dimensional Projects|3D]]
 +
* Doing complicated calculations
 +
* 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]]

Latest revision as of 16:33, 5 October 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{
} :: control
Category Control
Type C
Introduced in 2.0 alpha
Removed in 2.0 alpha

The all at once block was a C block and a Control block. The block ran the blocks inside it atomically. It was based on the Warp block in Snap!, and was originally called Warp Speed in Scratch as well.[citation needed] The block was planned to serve as a temporary turbo mode for designated scripts; using turbo mode, where the whole project was ran faster, can cause timing issues, and it is often only needed for a couple of scripts.

The block was removed later in the alpha version of Scratch 2.0; in the official release, custom blocks instead have an option entitled "run without screen refresh", which runs the script faster. However, using this feature with a wait block may result in misbehaving code.

Workaround

The block can be replicated by utilizing the "run without screen refresh" option:

when green flag clicked
all at once

define all at once
. . .

Example Uses

Some common uses for the all at once block are:

  • 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.