Events Category
1. when green flag clicked
Executes the subsequent script when you press the green flag.
Example:
After you click the green flag, the sprite moves forward 10 steps.
2. when ( ) key pressed
Executes the subsequent script when you press the specified key on the keyboard.
Example:
After you press the space key, the sprite moves forward 10 steps.
3. when this sprite clicked
Executes the subsequent script when you click the sprite.
Example:
After being clicked, the sprite says "Hello" for 2 seconds.
4. when backdrop switches to ( )
Executes the subsequent script when the stage backdrop is switched to the specified one.
Example:
When the backdrop is switched to backdrop1, the sprite plays the sound meow.
5. when ( ) > ( )
Executes the subsequent script when the loudness or timer value is greater than the specified value.
Example:
When the loudness is greater than 50, the sprite says "Too loud."
6. when I receive ( )
Executes the subsequent script when the specified message is received.
Example:
When receiving message1, the sprite moves forward 10 steps.
7. broadcast ( )
Broadcasts the specified message.
Example:
When you press the space key, the sprite broadcasts message1.
8. broadcast ( ) and wait
Broadcasts the specified message and waits until the scripts triggered by it are executed.
Example:
When you press the space key, the sprite broadcasts message1 and waits until all scripts triggered by it are executed.