▶️ Basic Usage¶
This page explains the basic workflow for placing and playing SpriteStudio animations in your Godot scene.
Note
This page assumes that an .ssab file has already been imported into your Godot project. If you do not have an .ssab yet, first see Asset Import and Editor Integration (editor-based import) or CLI Conversion and Automation (CLI-based import).
Fastest Setup: Auto Node Creation via Drag & Drop¶
Taking advantage of Godot's powerful editor, you can set up an animation with the shortest possible workflow.
- Find the imported
.ssabfile in the FileSystem dock. - Drag and drop the file into the 2D workspace (Scene view).
This action automatically creates a SpriteStudioPlayer2D node and assigns the resource to it.
Tip
Manual Node Addition and Attachment¶
If you want to place the node in a specific location within an existing node hierarchy, you can add it manually and assign the resource.
- Add a
SpriteStudioPlayer2Dnode to your scene tree using the "+" button in the Scene dock. - Select the added node and open the Inspector.
- Drag and drop the
.ssabfile from the FileSystem dock into theSsabproperty box in the Inspector to attach it.
Inspector Settings and Preview¶
Once the node is selected, you can adjust various settings from Godot's Inspector.
- Select the
Current AnimationOpen the dropdown for theCurrent Animationproperty in the Inspector. You will see a list of animations contained in the.ssab. Select the name of the animation you want to play.
Tip
- In-Editor Preview
With the node selected, the SpriteStudio bottom panel appears. Use its transport controls (play from start / play from current / stop, the frame scrubber, and the Loop and Speed controls next to them) to play the animation directly in the editor without running the game. Keyboard shortcuts mirror the AnimationPlayer editor: D play from current, Shift+D play from start, S stop (active while the panel is visible).
Changes to parameters like
Frame No,Speed Scale, andLoop Countare reflected in the preview in real-time, enabling quick adjustments. Loop setsLoop Countto-1(infinite) when on and to1when off, and Speed setsSpeed Scale. Both are edits to the scene: they are saved with it and undone with Ctrl+Z, like the same change made in the Inspector.
Tip
Main Inspector Properties¶
| Property | Type | Description |
|---|---|---|
Ssab |
Resource | The target SSABResource (.ssab file) to play |
Current Animation |
String | The name of the currently selected animation |
Autoplay |
bool | Whether to play automatically when the game starts |
Offset |
Vector2 | Drawing offset. Useful to shift visuals without changing the Node Transform |
Flip H / Flip V |
bool | Horizontal / Vertical flip of the animation |
Frame No |
float | The current frame position |
Speed Scale |
float | Playback speed multiplier (Default: 1.0) |
Loop Count |
int | Number of loops (-1 for infinite loop) |
Animation Section Start |
int | Start frame for partial playback. It cannot go past Animation Section End: move the end first |
Animation Section End |
int | End frame for partial playback. It cannot go before Animation Section Start: move the start first |
Frame Skip Enabled |
bool | Whether to skip frames when the draw interval exceeds the frame interval |
Sub Frame Enabled |
bool | Whether to enable sub-frame interpolation |
Animation Process Mode |
int | Whether to sync with _physics_process (Physics) or _process (Idle), or to leave stepping to advance() (Manual) |
Play Audio |
bool | Whether the built-in player sounds the animation's audio parts (see Audio Playback) |
Audio Volume |
float | Linear volume [0, 1] for the built-in audio playback |
Audio Bus |
StringName | Bus the built-in audio playback plays on (Default: Master) |
Audio Backend |
Resource | Optional SpriteStudioAudioBackend that replaces the built-in audio playback |
Note
What an animation change keeps. Everything you set: Loop Count, Speed Scale, Frame Skip Enabled, Sub Frame Enabled, a frame_rate override, and the playback direction and style all survive set_animation(). Only the playback section resets, to the new clip's own range.
The direction, style and frame_rate are set from a script (player.playback_direction, player.frame_rate) and are not saved with the scene.
Support for Mask Parts¶
This plugin supports SpriteStudio's "Mask" feature (for its limits, see Limitations & Scope → Masks).
Nothing to set up: mask parts in your .ssab clip as authored when you place it in the scene.


