Not every program is a list of immediately executed commands. Sometimes we need to give the users of our programs some time or have the program wait for something else to be executed first.
We can achieve this with the wait block.
Not every program is a list of immediately executed commands. Sometimes we need to give the users of our programs some time or have the program wait for something else to be executed first.
We can achieve this with the wait block.
The wait block is the first block in the orange block palette:
In this block, we can write down how many seconds the execution of the program should halt for
Warning: The wait block stops the execution of the commands underneath it. It does not stop commands of other start blocks.
This Tutorial is used in the following courses and lessons
"Keep 'em clean" is a game that uses the players' real-life movement captured by a camera to control many "people" and push them towards a sink where they wash their hands! In this course, you will learn the basics of programming with Scratch, as well as using the "Video Sensing" extension to receive movement from the camera!
In this lesson, we will make one of the most important things for a game - the Victory screen!
How should it look? When does the player win in the game?
The look of the victory screen will be up to you. The goal of the game is for all hands to be clean and only then would the game register as a win!