Scratch for Java

Pen::setPosition()

Sets position of the pen. When you are using the pen you got from a sprite by calling getPen, you do not need to set the position manually. The pen will follow the sprite.

Examples

 

View on GitHub

Syntax

Java

.setPosition(x, y)

Scratch

set position to x () y () :: pen

Parameters

Name Data Type Description
x float X coordinate
y float Y coordinate

Return

void

setPosition()