Studio Yotsuba
Back to Node List

Sprite Motion

sprite_motion

Motion filter for images: insert between an image and its consumer and the whole image moves (translate / ping-pong / rotate / bounce / wobble / blink / float / random) without promoting any parameters.

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Image to animate

Output Ports

NameTypeDescription
Image
output
Image
Image at this frame's motion state

Parameters

NameTypeDefaultRangeDescription / Options
Motion
mode
Enum
Float—

What kind of motion to apply to the image

  • MoveMove
    Travels in one direction, reaching the amount on the last frame. For entrances, exits and slide-ins.
  • Ping-PongPingPong
    Goes there and back at constant speed. For patrols and pendulums.
  • RotateRotate
    Keeps turning at constant speed (360 = one full turn per cycle). For propellers, coins and windmills.
  • BounceBounce
    Drops from the amount height and bounces to a stop. For balls and landing bounces.
  • WobbleWobble
    Sways smoothly like a sine wave (between ±amount). For swaying grass, trees and gentle drift.
  • BlinkBlink
    Switches between on (amount) and off (0). For warning lights, damage flashes and signals.
  • FloatFloat
    Rises gently from 0 to the amount and back (always positive). For idle bobbing and floating items.
  • RandomRandom
    Smooth deterministic noise (between ±amount). For flame flicker and screen shake.
Amount
amount
Float
4-1000–1000 / step 0.5

Motion amount in px (rotate = degrees)

Direction
direction
Enum
Right—

Direction for move / ping-pong / wobble / random (bounce and float are always vertical, rotate ignores this)

  • RightRight
  • LeftLeft
  • UpUp
  • DownDown
Period (frames)
period_frames
Int
00–120

Frames per cycle (0 = one cycle over the whole animation)

Per Frame
per_frame
Bool
false—

Move / Rotate only: amount is applied every frame (use with Wrap for scrolling backgrounds)

Wrap
wrap
Bool
false—

Translate modes: pixels leaving one edge re-enter from the opposite edge (seamless scrolling)

Easing
easing
Enum
None—

Speed curve for Move / Ping-Pong

  • NoneNone
  • Ease InEaseIn
  • Ease OutEaseOut
  • Ease In-OutEaseInOut
Shift (frames)
offset_frames
Float
0-120–120 / step 1

Shifts the motion by N frames (staggered animation)

On Ratio
duty
Float
0.50.05–0.95 / step 0.05

Blink only: fraction of the cycle the image stays visible

Seed
seed
Int
420–999999

Random only: deterministic random seed

Overview

A motion filter for images: insert it anywhere in an image flow and the whole image moves. No transform node, no parameter promotion — the shortest route from "I want this image to move". Motion math is identical to the motion node (including the loop-endpoint rule).

Usage tips

  • The standard wiring is image source → sprite_motion → animation_render — three nodes for a floating-sprite sheet.
  • Scrolling backgrounds: mode=Move + Per Frame ON + Wrap ON. If per-frame amount × total frames divides the canvas width, the loop is seamless.
  • Bounce and Float are always vertical; Move / Ping-Pong / Wobble / Random use the Direction parameter.
  • For fine-grained control of individual parameters, use the numeric motion node with promoted pins instead.

Common pitfalls

  • Rotation clips the corners: canvas size is preserved, so anything rotating outside is clipped. Give the canvas some margin first.
  • Rotation looks jagged: arbitrary-angle rotation of pixel art is inherently lossy. Prefer designs that read at 45°/90° steps, or use transform's 90° turns.
  • Move does not loop: Per Frame keeps accumulating. Use looping motions (ping-pong, wobble) or Wrap for loopable assets.

Related nodes

  • motion — numeric-output variant for driving promoted parameter pins
  • transform — static offset / scale / 90° rotation
  • animation_render — bakes the moving image into a spritesheet
Back to Node List