The "Wait Until" Block
-
Prerequisite
Description
The “wait until” block is a Stack block in the control category.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f751baa9-b602-4423-bed1-4510859a4aca.PNG" width="550" style="">
How does this block work?
This block will pause the program until the condition given in the input becomes true. In other words, the blocks attached below this block will not run so long as the condition is false.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/23368a3e-dfd4-42bf-b989-632c42e76937.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
If the condition is already true
If the condition given in the wait until block is already true, then the block will not wait at all.
For example, in the screencast below, the value of “my variable” is greater than 20, so the “wait until” block will not wait, and the “next costume” block below it runs right away.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6c919b28-0fe7-4a21-ab27-537205c862a9.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
Wait Until Timer Animation
In this example, the “wait until” block waits for the timer value to reach “10 seconds”, and then switches the backdrop to “Game Over”.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2b98ef9f-2ac4-4d7a-9956-ab2cd6e22e05.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login