Table of Contents

when this sprite clicked

Description

Scripts that wear the block will activate once its sprite or clone of the sprite is clicked. Contrary to its definite name, the block will also execute the clone’s script when the clone is clicked on.

Example

The example demonstrates the use of clone and gliding function in Sprite. 

The example demonstrates the use of clone and gliding function in Sprite:

  1. Whenever the sprite is clicked, a clone is created.
  2. When a clone is created its position is set to a random position on the top of the stage and then it glides down to the bottom.
  3. When it reaches the bottom, the clone is deleted.

Script

Output

Read More
The example demonstrates how to make the sprite glide to a random position on the stage when it is clicked.

Script

Output

Read More
The example demonstrates the costume change and gliding to the random location when clicked.

Script

Output

Read More
All articles loaded
No more articles to load