Previous backdrop: Difference between revisions

From PenguinMod Wiki
Previous backdrop
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox Block
{{Blocks
|block_img = Block 5 2 2023-6 02 32 PM.png
|block_img = <gallery>
Block 5 2 2023-6 02 32 PM.png|Block
Workaround prev bdrop.png|Workaround
</gallery>
|block_type = Stack
|block_type = Stack
|category = Looks
|category = [[Looks]]
|title = previous backdrop
}}
}}
The previous backdrop block is a stack block and a [[looks block]] that switches the backdrop to the previous one.
The previous backdrop block is a stack block and a [[looks block]] that switches the backdrop to the previous one, or goes to the last backdrop if used when the stage is currently on the first listed backdrop.
==Workaround==
==Workaround==
Scratch already has a "previous backdrop" option available in the switch backdrop to () blocks, which works the same as setting the backdrop to the backdrop # - 1.
Scratch already has a "previous backdrop" option available in the [[switch backdrop to ()]] and the [[switch backdrop to () and wait]] blocks, which works the same as setting the backdrop to the backdrop number - 1:
<scratchblocks>
switch backdrop to (previous backdrop v)

switch backdrop to ((backdrop [number v]) - (1))
</scratchblocks>
==See also==
*[[previous costume]]
*[[next backdrop]]
*[[next costume]]
{{DISPLAYTITLE:previous backdrop}}
{{DISPLAYTITLE:previous backdrop}}
{{Blockcat|type=Stack|cat=Looks}}
[[Category:Stack Blocks]]
[[Category:Looks Blocks]]

Latest revision as of 18:43, 11 July 2024

previous backdrop
...
[[File:|200px]]
Caption
Block Type Stack
Category / Extension Looks
Status Who tf uses status

The previous backdrop block is a stack block and a looks block that switches the backdrop to the previous one, or goes to the last backdrop if used when the stage is currently on the first listed backdrop.

Workaround

Scratch already has a "previous backdrop" option available in the switch backdrop to () and the switch backdrop to () and wait blocks, which works the same as setting the backdrop to the backdrop number - 1:

switch backdrop to (previous backdrop v)

switch backdrop to ((backdrop [number v]) - (1))

See also