The "Wait" Block
-
Prerequisite
Description
The “Wait” block is a Stack Block in the Control category.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0210483f-4caa-4346-92b6-552e25b9fc87.PNG" width="600" style="">
Seconds, Milliseconds and Frames
The wait block is used to make a Sprite wait for some time before running the next block. Note that 1 second = 60 frames = 1000 milliseconds
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/cf1c4035-4907-451c-bc3a-7900b90b328b.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Blocks After the Wait Block
The program will pause during the wait, so the blocks after the wait block will not run until the wait is over.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/355ee6c9-c9ab-4817-8884-bd8dc32240c4.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Demo: Animation Using the Wait Block
In this example, we show a few costumes one by one. To make sure the user can view each costume clearly, we can add some “wait 1 second” blocks before we switch to the next costume.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a41f3b92-8b56-4eb7-a0e2-2dbc4d4ea48b.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
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