All examples · Sprites and 2D

Transform

What this example shows

Position, rotation and scale live on the sprite's transform, and you change them by writing its fields. Rotation and scale pivot around the sprite's centre, which is also the point x and y place, so the logo spins and pulses in place while it drifts instead of swinging around a corner.

Starting