Events Category

1. when green flag clicked

When the green flag is clicked, run the script

Example:

When the green flag under the stage is clicked, the sprite will move forward for 10 steps.


2. when () key pressed

When the specified key is pressed, run the script.

Example:

When the space key is pressed, the sprite will move forward for 10 steps.


3. when this sprite clicked

When the currently chosen sprite is clicked, run the script.

Example:

When we click the sprite, it will say "Hello!" for 2 seconds.


4. when backdrop switches to ()

When the backdrop of the stage changes to the specified one, run the script.

Example:

When the backdrop of the stage is switched to "backdrop1", the sound "Jump" will be played.


5. when () > ()

When loudness or timer is greater than the specified value, run the script.

Example:

When the loudness is greater than 50, the sprite will say "Too loud!".


6. when I receive ()

When the sprite receives the specified message, run the script.

Example:

When the sprite receives "message1", it will move forward for 10 steps.


7. broadcast ()

Broadcasts the specified message.

Example:

When the space key is pressed, the sprite will broadcast "message1".


8. broadcast () and wait

Broadcasts the specified message and waits until all the scripts activated by this broadcast end.

Example:

When the space key is pressed, the sprite will broadcast "message1" and wait until all the scripts activated by this broadcast end.


results matching ""

    No results matching ""