Table of Contents

glide () secs to x: () y: ()

Description

The block glides sprite to the specified X and Y position in the specified duration. This block has animation in its movement.

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
All articles loaded
No more articles to load