Overview
For 90° steps, Transform is enough. Use this node when you need arbitrary-angle rotation, such as a sword tilted 45° or a spinning coin. The RotSprite method is a pixel-art-specific rotation algorithm that preserves outlines without blending colors.
Usage tips
- Use
RotSprite(the default) in most cases. It introduces no antialiased intermediate colors, so the palette stays clean. UseNearestonly when you deliberately want a rougher look. - The go-to rotation animation is: promote
angleto an input pin 📌 →time_source+remap(0–360) →animation_render. This can batch-produce coins, shuriken, or gears. - For a sprite sheet, set
canvas = Keepto fix the frame dimensions beforesprite_sheet_pack. With Expand, the dimensions can change from frame to frame.
Related nodes
transform— for 90° steps, flipping, and translationanimation_render— bake rotation animationremap/time_source— drive the anglesprite_sheet_pack— collect the frames
Modes
| Method | Description |
|---|---|
| RotSprite (clean) | Enlarges by 8× with Scale2x, rotates, then downsamples by majority vote over 8×8 subpixels. Because it does not blend colors, it smooths the outline while preserving the palette. |
| Nearest (rotate as-is) | Nearest-neighbor sampling. Fast, but produces stair-stepped outlines. |
Canvas
| Value | Description |
|---|---|
| Expand (expand for rotation) | Expands to dimensions that contain the entire rotated image. Empty areas are transparent. |
| Keep (preserve original size) | Keeps the original dimensions. Corners extending outside are clipped. |
Technical details
- Rotation uses the center of the image as its pivot.
angle = 0passes the input through as-is.- RotSprite's majority vote prefers opaque colors in a tie.
- The output introduces no new colors; it contains only input colors and transparency.
Examples
- Rotation animation:
Time Source→Remap(0..360)→ connect toangle, then batch-produce a spinning coin sprite sheet withAnimation Render. - Alternate weapon poses: rotate a sword sprite with
RotSprite,angle: 45to create a diagonal pose variant. - Prepare for batch production: use
canvas: Keepto preserve dimensions after rotation, then send directly toSprite Sheet Pack.