Sprite::glide()
Glides to a position in a number of seconds of game time; the sprite keeps running its code meanwhile. A new glide replaces one that is still going.
Examples
Syntax
Java
.glide(seconds, x, y)
Scratch
glide (seconds) secs to x: (x) y: (y)
Parameters
| Name | Data Type | Description |
|---|---|---|
| seconds | double | how long the glide takes |
| x | double | x of the target |
| y | double | y of the target |
Return
void