switch backdrop to () and wait
Switch backdrop to () and wait
The switch backdrop to () and wait block is a stack block in the Looks category that switches the backdrop to the specified name, and then waits for all when backdrop switches to () blocks associated with that backdrop to complete. It originates from Scratch, and has the same dropdown options as the switch backdrop to () block.
Workaround
This block can be worked around by using a broadcast in place of the when backdrop switches to () blocks, and then using the broadcast () and wait block, or by using a variable to check when the blocks are complete:
switch backdrop to (name v) broadcast (backdrop code v) and wait code::grey when I receive [backdrop code v] code::grey
Or:
switch backdrop to (name v) set [done? v] to [false] wait until <(done?)::operators> ... when backdrop switches to [name v] code::grey set [done? v] to [true]