Character motion
Describe bounded cosmetic motion over an authorized move; Scape retains movement authority.
Public exports
Import from @scape-wtf/sdk.
GizmoCharacterFrame, GizmoCharacterMotion, characterMotionFrame, gizmoCharacterMotionError.
Type declarations
Import the public exports listed above from the package entry point.
ts
/** Cosmetic transforms over an authorized movement, independent of character artwork. */
export interface GizmoCharacterFrame {
/** Normalized time, from 0 to 1. */
at: number;
/** Screen-plane offset in cells; positive Y lifts the character. */
offset: [number, number];
scale: [number, number];
/** Screen-plane rotation in radians. */
rotation: number;
}
/** Bounded transform animation; never grants movement or skeletal access. */
export interface GizmoCharacterMotion {
durationMs: number;
frames: GizmoCharacterFrame[];
}
export declare function gizmoCharacterMotionError(value: unknown): string | null;
/** Smooth interpolation of a validated recipe, with exact authored endpoints. */
export declare function characterMotionFrame(motion: GizmoCharacterMotion, progress: number): GizmoCharacterFrame;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Usage and limits
See Gizmo guides, working examples, and limits for lifecycle, validation and Scape behavior.
