Control Category

1. wait ( ) seconds

Waits a specified period of time before executing the subsequent script.

Example:

After you click the green flag, the sprite says "Hello," waits one second, and then says "I am a Panda." (The sprite in this example is Panda.)


2. repeat ( )

Repeats the scripts included in this block the specified number of times. The default value is 10.

Example:

After you click the green flag, the sprite repeats the following actions 3 times: moves forward 10 steps with the sound Jump.


3. forever

Executes the scripts included in this block repeatedly.

Example:

After you click the green flag, the sprite always moves to the position of the mouse pointer.


4. if ( ) then ( )

Executes the scripts included in this block if the specified conditions are met.

Example:

After you click the green flag, the sprite always moves forward 10 steps and glides to (0,0) in one second and turns right by 15 degrees if it touches the stage edge.


5. if ( ) then ( ) else ( )

Executes script 1 included in this block if the specified conditions are met. Otherwise, script 2 is executed.

Example:

After you click the green flag, the sprite always moves forward 10 steps and glides to (0,0) if it touches the stage edge.


6. wait ( )

Waits until the specified conditions are met before executing the subsequent script.

Example:

After you click the green flag, the sprite says "Hello," waits until you press the space key, and then says "Nice to meet you."


7. repeat until ( )

Executes the included scripts and stop execution when the specified conditions are met.

Example:

After you click the green flag, the sprite keep saying "Hello," and says "Nice to meet you" when you press the space key.


8. stop ( )

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

Example:

When you press the space key, all scripts are stopped.


9. when I start as a clone

Executes the subsequent script when a clone is created.

Example:

When a clone is created, the size is set to 90% and color effect is set to –10.


10. create clone of ( )

Creates a clone of this sprite or another sprite.

Example:

When you click the green flag, a clone of this sprite is created.


11. delete this clone

Deletes the clone.

Example:

When you click the green flag, a clone of the sprite is created with the size of 60% and color effect of –10. The clone glides to a random position of the stage in one second and repeats this action 10 times. After the process is complete, the clone is deleted 3 seconds later.


results matching ""

    No results matching ""