Switch backdrop to (): Difference between revisions
Switch backdrop to ()
Content added Content deleted
(Created page with "{{Infobox Block |block_name = switch backdrop to ( v) |block_type = Stack Block |category = Looks |title = switch backdrop to () }} THe '''switch backdrop to ()''' block is a stack block in the Looks category that switches the backdrop to the specified name, a random backdrop, the next backdrop, or the previous backdrop. It originates from Scratch. ==Workaround== The previous backdrop option can be worked around with the following:<br> previous backdrop|<sb...") |
No edit summary |
||
Line 5: | Line 5: | ||
|title = switch backdrop to () |
|title = switch backdrop to () |
||
}} |
}} |
||
The '''switch backdrop to ()''' block is a stack block in the [[Looks]] category that switches the backdrop to the specified name, a random backdrop, the next backdrop, or the previous backdrop. It originates from [[Scratch]]. |
|||
==Workaround== |
==Workaround== |
||
The previous backdrop option can be worked around with the following:<br> |
The previous backdrop option can be worked around with the following:<br> |
||
Line 20: | Line 20: | ||
switch backdrop to (pick random (1) to (backdrop #)) |
switch backdrop to (pick random (1) to (backdrop #)) |
||
</scratchblocks> |
</scratchblocks> |
||
Alternatively, you can just use the number of backdrops |
Alternatively, you can just use the number of backdrops in the random backdrop workaround, like this: |
||
<scratchblocks> |
|||
switch backdrop to (pick random (1) to (number of backdrops::grey)) |
|||
</scratchblocks> |
|||
==See also== |
==See also== |
||
*[[switch backdrop to () and wait]] |
*[[switch backdrop to () and wait]] |
||
*[[switch costume to ()]] |
*[[switch costume to ()]] |
||
{{DISPLAYTITLE:switch backdrop to ()}} |
|||
[[Category:Stack Blocks]] |
|||
[[Category:Looks Blocks]] |
|||
[[Category:Vanilla Blocks]] |
Revision as of 20:47, 29 June 2024
switch backdrop to () | |
---|---|
switch backdrop to ( v) | |
Block Type | Stack Block |
Category / Extension | Looks |
The switch backdrop to () block is a stack block in the Looks category that switches the backdrop to the specified name, a random backdrop, the next backdrop, or the previous backdrop. It originates from Scratch.
Workaround
The previous backdrop option can be worked around with the following:
previous backdrop ::looks
Or:
switch backdrop to ((backdrop #) - (1))
The next backdrop option can be worked around with the following:
next backdrop
Or:
switch backdrop to ((backdrop #) + (1))
The random backdrop option can be worked around with the following:
switch backdrop to ((0) + (0)) //switching to the 0th backdrop switches to the last switch backdrop to (pick random (1) to (backdrop #))
Alternatively, you can just use the number of backdrops in the random backdrop workaround, like this:
switch backdrop to (pick random (1) to (number of backdrops::grey))