Studio Yotsuba
Back to Node List

Motion

motion

Moves any numeric parameter automatically, one node does it all: pick a motion (move / ping-pong / rotate / bounce / wobble / blink / float / random), how much, and how fast. Connect the output to the pin of the parameter you want to animate.

Reviewed
Guide available

Input Ports

NameTypeDescription
Input
input
Float
Usually leave this unconnected — the motion follows the animation time by itself. Connect a 0-1 value only when you want to control the timing from another node (e.g. stagger).

Output Ports

NameTypeDescription
Output
output
Float
The value for the current frame. Connect it to the pin of the parameter you want to animate.

Parameters

NameTypeDefaultRangeDescription / Options
Motion
mode
Enum
PingPong—

What kind of motion to generate

  • 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
8-1000–1000 / step 0.5

Motion amount in px or degrees (move = distance, ping-pong / wobble / float = swing size, rotate = angle, bounce = height, blink / random = output level)

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: treat the amount as per-frame movement (e.g. 2px every frame). The value keeps accumulating, so the result does not loop by itself.

Easing
easing
Enum
None—

Speed curve for Move / Ping-Pong (Bounce has its own built-in curve)

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

Shifts the motion by N frames. Use different shifts on copies of the same motion for staggered animation.

Base
base
Float
0-1000–1000 / step 0.5

The center of the motion. E.g. to wobble around Y=32, set this to 32.

On Ratio
duty
Float
0.50.05–0.95 / step 0.05

Blink only: how much of each cycle stays on (0.5 = half on, half off)

Seed
seed
Int
420–999999

Random only: the random pattern number. Same number = same movement every time; change it to get a different random movement.

Overview

The go-to animation node. Pick how it moves (ping-pong, rotate, bounce, ...), how much (px / degrees), and how many frames per cycle — one node produces a full animation signal. It replaces the old time_source → waveform → remap → ease_in_out chain: connect the output to a promoted parameter pin and that parameter animates.

Usage tips

  • The standard wiring is motion → a promoted parameter pin on the node you want to animate. Example: to make an image bob up and down, promote y on a transform, connect motion(mode=Float, amount=4), then finish with animation_render.
  • Amount is specified directly in px or degrees — enter the visible amount you want on the final spritesheet ("6px swing", "360° per turn").
  • Period (frames) = 0 means one cycle over the whole animation. For two cycles in an 8-frame sheet, set period = 4.
  • Base is the resting position (center of motion). To wobble around y=32, set base=32 and amount=6.
  • Give copies of the same motion different Shift (frames) values for staggered animation (grass swaying in sequence, follow-through on character parts).
  • Loop endpoints are handled automatically: cyclic motions stop the last frame just before wrapping, so looping playback never shows a duplicated pose.
  • time_source is not needed (the node follows animation time when input is unconnected). Only feed input for advanced uses such as phase modulation.

Common pitfalls

  • "Per Frame" does not loop: 2px every frame keeps accumulating, so the sheet will not loop by itself. Outside of scrolling-background style assets, prefer looping motions such as ping-pong or rotate.
  • Nothing moves: the target parameter must be promoted to a pin before you can connect. Use the promote button on the parameter row in the Inspector.
  • Easing has no effect on Blink / Random: easing applies to Move / Ping-Pong only; Bounce ships its own built-in curve.

Related nodes

  • remap — convert the output range to another range when needed
  • ease_in_out — general-purpose easing for any Float signal
  • animation_render — bakes the animated image into a spritesheet
  • keyframe_clip — use keyframes for acting that is hard to express as a rule
  • time_source — advanced access to raw frame numbers and totals
Back to Node List