Revision as of 15:20, 14 September 2012 by Scimonster (talk | contribs) (I won't be able to do any more for a day or two.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Clock.png This article or section contains information about a feature from a future version of Scratch that is unreleased and is subject to change. Please cite any additional info in order to prevent speculation.
The correct title of this article is Costume # (block). The Scratch Wiki uses this different title because of technical restrictions.
Scene #
Scene number.png
Category Events
Type Reporter
Introduced in 2.0

The Scene # Block is an Event Block and a Reporter Block. The block holds the current scene number. This block replaced the Background # block in Scratch 2.0.

This block can be displayed as a Stage monitor.

Workaround

Main article: List of Block Workarounds

This block can simply be replicated with the following code

([scene # v] of [Stage v])

Example Uses

As this block holds the scene number of the Stage, it is used when something must happen if the Stage is at a specific background. Some more common uses:

  • Stopping the project once the Stage reaches the scene for the end of the project
  • Checking what the current scene is
  • Setting a variable to the current scene

See Also