Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    The "Wait Until" Block

    2D Blocks
    1
    1
    506
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Prerequisite

      • Working with Blocks

       

      Description

      The “wait until” block is a Stack block in the control category.


       

      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.


       

      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.


       

      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”.


       

      1 Reply Last reply Reply Quote 0
      • First post
        Last post