Scratch for Java

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

View on GitHub

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

setRotationCenter()

Create Shareable URL

Select Sections