Sprite::changePosition()
Changes the position of the sprite by a given vector.
Examples
Syntax
Java
.changePosition(v)
.changePosition(x, y)
Parameters
| Name | Data Type | Description |
|---|---|---|
| v | Vector2 | a vector representing the change in position |
| x | double | how far to move along the x-axis |
| y | double | how far to move along the y-axis |
Return
void