Sprite::setRotationCenter()
Sets the point of the costumes the sprite turns around and stands on, in costume pixels from the top left corner. Without it, that is the centre of each costume.
Examples
Syntax
Java
.setRotationCenter(x, y)
Parameters
| Name | Data Type | Description |
|---|---|---|
| x | double | pixels from the left edge |
| y | double | pixels from the top edge |
Return
void