Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. 2D Blocks
  4. The "Wait Until" Block

The "Wait Until" Block

Scheduled Pinned Locked Moved 2D Blocks
1 Posts 1 Posters 2.2k Views
  • 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.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    Prerequisite

    • Working with Blocks

     

    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;">
     

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode