Navigation

    CreatiCode Scratch Forum

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

    The "Ask () and Wait" Block

    2D Blocks
    1
    1
    718
    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

      • The “Say” and “Think” Blocks

       

      Description

      The Ask() and Wait block is a Stack Block in the Sensing Category. It is used to ask a question and wait for the answer.


       

      How does the Ask() Block Work?

      When you click on the Ask() block, it shows a Speech bubble (Dialogue Box) just like the “Say Block”, and also shows an “Input Box” at the bottom of Stage.

      The Input Box and Speech bubble will stay on the Stage and wait for you to type an “answer”.


       

      How to Close the Input Box?

      You can type an answer in the Input Box or leave it blank. To close the Input box you need to click the “checkmark” or press “ENTER” on your keyboard.


       

      How to check the Answer?

      With “Answer” Block:

      If you want to see the answer on Stage, you can check (click) the “Checkbox” in front of the “Answer” block in the Sensing category.

      With “Say” Block:

      You can also put the “Answer” block in the “Say Block” to show the Input box answer in a Speech bubble.


       

      Ask() Block with an Empty Input

      If you use the “Ask() and wait” block with an empty input, it will only show the input box at the bottom.

       

      Stop Asking and Close the Input Box

      Sometimes you may not want to wait for the user to type in the answer. You can use the “stop asking” block to close the input box:

       

      The Blocks Below “Ask() and Wait” Block Will Wait

      If the Input box is open on Stage, the blocks attached below the “Ask()” block will not run until the Input box is closed.


       

      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post