Scratch for Java

Sprite::glide()

Slides the sprite to a place over the given time, instead of jumping there.

Unlike Scratch this does not hold up the sprite: run() keeps being called while the sprite is on its way. Use isGliding() to tell whether it has arrived.

Examples

View on GitHub

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 trip should take
x double where to end up
y double where to end up

Return

void

glide()

Create Shareable URL

Select Sections