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.
The example demonstrates the use of clone and gliding function in Sprite.
The example demonstrates the use of clone and gliding function in Sprite:
- Whenever the sprite is clicked, a clone is created.
- 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.
- When it reaches the bottom, the clone is deleted.
Script
Output
Read More