Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » What does the "Switch [Backdrop/costume] to [name] and wait" do?
- Rhythmdvling
-
Scratcher
19 posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
More specifically, what does the “wait” part do?
- gor-dee
-
Scratcher
1000+ posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
I believe it waits until any
when backdrop switches to [ v]scripts have run
- 1492864
-
Scratcher
500+ posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
The switch backdrop to () and wait block is a Stack block and a Looks block. It functions similarly to the switch to backdrop () block, but this block waits for scripts under any when backdrop switches to () blocks to finish. This block is also similar to the broadcast () and wait block, because they both fire a user-driven event to start an action.Source
- goldenlion06
-
Scratcher
500+ posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
broadcast (message) and wait does:
a: broadcasts the message.
b: doesn't do code after that block in that script until the code in the broadcast is done
a: broadcasts the message.
b: doesn't do code after that block in that script until the code in the broadcast is done
- Scratch137
-
Scratcher
1000+ posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
broadcast (message) and wait does:That's not what the OP is referring to; the block they're talking about is this one:
a: broadcasts the message.
b: doesn't do code after that block in that script until the code in the broadcast is done
switch backdrop to [ v] and wait
Although similar in function, this block switches the backdrop and, as gor-dee said:
I believe it waits until anywhen backdrop switches to [ v]scripts have run
- IXC
-
Scratcher
16 posts
What does the "Switch [Backdrop/costume] to [name] and wait" do?
switch backdrop to [random v] and waitMeans that the block will switch to a background, but if a block like
when backdrop switches to [random v]will be activated, the block will wait until all the scripts are finished. For example:
when green flag clicked
switch backdrop to [random v] and wait
when backdrop switches to [random v]
move (10) steps
The block will wait until the sprite has taken the 10 steps, so when the activated scripts are finished.
Last edited by IXC (March 25, 2021 05:45:52)
- Discussion Forums
- » Help with Scripts
-
» What does the "Switch [Backdrop/costume] to [name] and wait" do?





