Page 61 - IT_V5.0_Class6
P. 61
Example 3: Sprite say Hello! for 5 seconds when the green flag button is clicked.
Follow the given steps to do so:
Step 1: Click on the Events category.
Step 2: Drag the when clicked block to the Script area.
2
1
Step 3: Click on the Looks category.
Step 4: Drag and drop the say for 2 seconds block and snap it to just below the when clicked
block.
Step 5: Type Welcome in the first box.
Step 6: Type 5 in the second box.
Step 7: Click on the green flag button. The message will be displayed for 5 seconds.
7
3
4
5 6
Example 4: The sprite changes its costume and increases its size by 30% when the green flag
button is clicked.
Event Blocks
These blocks are used to trigger actions when certain conditions happen. It starts running scripts
(or code) based on things like clicking the green flag, pressing a key, or clicking on a sprite. These
blocks are important for making interactive projects like games, animations, or stories.
Learning Scratch 59

