Revision as of 08:31, 1 May 2011 by Scimonster (talk | contribs) (Workaround: changed warning to note)

Ask () and Wait
Ask () and Wait.png
Category Sensing
Type Stack
The Ask () and Wait block is a Sensing block and a Stack block. The block will make an input box (with the specified text above it) show at the bottom of the screen. Scratchers can input text into it and submit it - the input is stored in the Answer block. The Answer block automatically updates to the latest input.

In Scratch and the Flash Player, text can be pasted in, but not in the Java Player.

Workaround

This block can be somewhat replicated with the following code:

File:Workaround for the ask and wait block.png

Note Note: This does not work perfectly. See this project for more information.

The list "answer" will replace the answer block.

Example Uses

As this block allows users to input any text they want, it is widely used when a user must communicate with the project.

Some common uses for the Ask () and Wait block:

  • Chatbots - receiving information from the user
  • Setting preferences - coordinates, color, and so on
  • Receiving input - asking the user to give a command

See Also