Sprite::setPosition()
Goes to a position; with the pen down, it draws a line there.
Examples
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