4.2.1 Wait

View

The  or “Wait () Seconds” block is a Control block and a Stack block. The block pauses the execution of a script for the specified number of seconds. The number after “wait” can also be a decimal number. This block is used whenever a sprite must wait for the specified time before the next action takes place.

 

Example

The example below instructs the sprite to say “Hello!” when the green flag is clicked and, after five seconds, to say “How are you?”

Figure 112: Instructions to say “Hello!"

Last modified: Wednesday, 29 September 2021, 4:54 PM