Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » wait until block use
- FoiMini321Expert
-
Scratcher
8 posts
wait until block use
What is this block used for?
Question by FoiMini321Expert
wait until <>
Question by FoiMini321Expert
Last edited by FoiMini321Expert (May 13, 2023 09:38:33)
- DifferentDance8
-
Scratcher
1000+ posts
wait until block use
that block waits until a condition is met.
for example, say you want to have a button that does something but you don't want it to happen as soon as you press on the button.
then, you can do something like:
for example, say you want to have a button that does something but you don't want it to happen as soon as you press on the button.
then, you can do something like:
when this sprite clicked
wait until <not <mouse down?>>
. . .
- donotforgetmycode
-
Scratcher
1000+ posts
wait until block use
It pauses the script until the condition is true. For example,
wait until <key [space v] pressed?>waits until the space key is pressed.
- -gr
-
Scratcher
1000+ posts
wait until block use
Basically, it will wait to run the code connected below it until a condition is true, for example if a variable reaches or exceeds a certain value.
when green flag clicked
set [numbers v] to [0]
forever
change [numbers v] by (1)
end
when green flag clicked
say [Waiting until number is 100]
wait until <(number) = [100]>
stop [other scripts in sprite v]
say [The number is 100!]
- medians
-
Scratcher
1000+ posts
wait until block use
Oh my god, don't remind me of the pain I had to suffer trying to explain that block to someone for 2 pages (I think you can find it through ocular LOL)
Also:

Also:

- PaperMarioFan2022
-
Scratcher
1000+ posts
wait until block use
Oh my god, don't remind me of the pain I had to suffer trying to explain that block to someone for 2 pages (I think you can find it through ocular LOL)
Also:
Jeez, that sounds terrible medians lol
- Discussion Forums
- » Questions about Scratch
-
» wait until block use