Control Category

1. wait () seconds

Wait for a specified period of time to run the script.

Example:

When the green flag is clicked, the sprite will say "Hello!", and then say "I am a Panda!" one second later.


2. repeat ()

Run the script for the specified number of times.

Example:

When the green flag is clicked, the sprite will move forward 10 steps while the sound "Jump" is being played, and repeat 3 times.


3. forever

Run the script repeatedly.

Example:

When the green flag is clicked, the sprite will always go to the mouse-pointer.


4. if () then ()

If the report condition is met, run the script.

Example:

When the green flag is clicked, the sprite will always move forward for 10 steps, unless it touches the edge. In that case, the sprite will glide to (0,0) in one second and turn clockwise 15 degrees.


5. if () then () else ()

If the report condition is met, run script 1. If not, run script 2.

Example:

When the space key is pressed, the sprite will move forward for 10 steps. When touching the edge, the sprite will go to (0,0).


6. wait ()

Wait until the report condition is met. Then run the script.

Example:

When the green flag is clicked, the sprite will say "Hello!". When the space key is pressed, the sprite will say "Nice to meet you!".


7. repeat until ()

Run the script repeatedly until the report condition is met.

Example:

When the green flag is clicked, the sprite will say "Hello!". Until the space key is pressed, it says "Nice to meet you!".


8. stop ()

Stop the specified script or scripts. There are three options: all, this script, or other scripts in sprite.

Example:

When the space key is pressed, all scripts will stop.


9. when I start as a clone

When a clone is created, run the script.

Example:

When a clone is created, its size will be set to 60% and color effect to -10.


10. create a clone of ()

Creates the specified clone.

Example:

When the green flag is clicked, a clone of this sprite will be created.


11. delete this clone

Deletes the a clone.

Example:

When the green flag is clicked, a clone of this sprite will be created. The size and color effect of the clone will be set to 60% and -10 respectively. The clone will glide to a random position of the stage for ten times. After the repeat is done, the clone will be deleted in 3 seconds.


results matching ""

    No results matching ""