Scratch for Java

Sprite::setPosition()

Goes to a position; with the pen down, it draws a line there.

Examples

View on GitHub

Syntax

Java

.setPosition(x, y)
.setPosition(position)

Scratch

go to x: (x) y: (y)

Parameters

Name Data Type Description
x double x of the new position
y double y of the new position
position Vector2 the new position

Return

void

setPosition()

Create Shareable URL

Select Sections