# 🕹️ SpriteStudio Player for Godot

A plugin for playing back animations created with [SpriteStudio](<https://www.webtech.co.jp/spritestudio/>) inside [Godot Engine](<https://godotengine.org/>). Drag a `.sspj` onto the **SS Importer** dock, then drop the converted `.ssab` into the 2D viewport — no code to reach the first frame.

> [!TIP]
>
> **No SpriteStudio data of your own yet?**
>
> The [official sample data](<https://www.webtech.co.jp/help/ja/spritestudio7/download/sample/>) works as-is — that page is Japanese only, but the downloads themselves are language-neutral. [Ringo](<https://www.webtech.co.jp/help/ja/spritestudio7/download/sample/#ringo>) is a good character sample, and [Particle](<https://www.webtech.co.jp/help/ja/spritestudio7/download/sample/#Perticle_sample>) is a good one if you want effects.

## Table of Contents

- **Setup**

  - [Installation](<https://cri-middleware.github.io/SSPlayerForGodot/setup/install/index.md>)
- **Workflow**

  - [Basic Usage](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/usage_basic/index.md>)
  - [Asset Import &amp; Editor Integration](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/usage_asset_pipeline/index.md>) (start here for the initial `.sspj` import)
  - [Scripting &amp; Events](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/usage_scripting/index.md>)
  - [Motion Blending](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/motion_blending/index.md>)
  - [UI Buttons](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/ui_buttons/index.md>)
  - [Audio Playback](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/audio/index.md>)
  - [AnimationPlayer Integration](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/animation_player/index.md>)
  - [Exporting Your Project](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/export/index.md>)
  - [Generated Assets and Packs](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/generated_assets/index.md>) (dependencies, export modes, `.pck`)
- **Advanced Topics**

  - [CLI Conversion &amp; CI/CD](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/import/index.md>)
  - [Verifying Playback from the Command Line](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/verify_playback/index.md>) (headless checks and a PNG snapshot, for CI and coding assistants)
  - [Performance Tuning and Advanced Settings](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/tips/index.md>)
- **API Reference**

  - [SpriteStudioPlayer2D](<https://cri-middleware.github.io/SSPlayerForGodot/api/player/index.md>)
  - [Resource Classes](<https://cri-middleware.github.io/SSPlayerForGodot/api/resource/index.md>)
- [Troubleshooting](<https://cri-middleware.github.io/SSPlayerForGodot/troubleshooting/index.md>)
- [Limitations &amp; Scope](<https://cri-middleware.github.io/SSPlayerForGodot/limitations/index.md>)
- [Migration from v1.x](<https://cri-middleware.github.io/SSPlayerForGodot/migration_from_v1/index.md>)
- **For Player &amp; SDK Developers**

  - [Build Guide](<https://cri-middleware.github.io/SSPlayerForGodot/development/build/index.md>)
  - [How the Player Is Put Together](<https://cri-middleware.github.io/SSPlayerForGodot/development/architecture/index.md>) (the layers, and why the player is built the way it is)
- **License**

  - [License](<https://cri-middleware.github.io/SSPlayerForGodot/license/index.md>)
  - [Third-Party Notices](<https://cri-middleware.github.io/SSPlayerForGodot/third_party_notices/index.md>)

## Key Features

- **Bring your characters to life.** Breathing and blinking, swaying hair and clothes, flashy slash and magic effects — the motion is built visually in a dedicated editor (SpriteStudio) with bone rigs, mesh deformation, particles and per-part add-on shaders, and Godot just plays it. Animations crossfade and layer on tracks at runtime, so a walk eases into a run instead of snapping ([Motion Blending](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/motion_blending/index.md>)). Nothing to rebuild by hand in `AnimationPlayer`.
- **Not just characters — effects, UI and whole scenes.** Combine characters, backgrounds, effects and UI into a cutscene or a full-screen sequence in the editor, and play it in Godot as a single animation. `SpriteStudioButton` makes one a Godot button that plays its own section for hover, press, disabled and focus ([UI Buttons](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/ui_buttons/index.md>)).
- **Just another node.** `SpriteStudioPlayer2D` sits in your scene like any other node and is controlled from GDScript — with signals from timeline keys, built-in audio playback, per-part overrides, and cellmap texture swaps at runtime ([Scripting &amp; Events](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/usage_scripting/index.md>)). The animation lives in its own file rather than inside the scene, so teammates don't collide over scene merges in Git.
- **A seamless SpriteStudio ⇄ Godot round trip.** Drop a `.sspj` onto the SS Importer dock and it is converted inside the editor ([Asset Import &amp; Editor Integration](<https://cri-middleware.github.io/SSPlayerForGodot/workflow/usage_asset_pipeline/index.md>)). To tweak it, click **Open SSPJ** in the Inspector, save in SpriteStudio, then click **Reconvert** — no manual export step.
- **Zero-parse loading, SIMD playback.** `.ssab` is a FlatBuffers binary read in place, so loading involves no parsing, and poses are computed by a SIMD-optimised Rust core — light enough for mobile and for scenes with many characters. Turn on **sub-frame interpolation** and motion follows high-refresh-rate displays.

## Overview

The diagram below shows how data flows through the plugin from authored assets to in-game playback.

```
graph LR
    SS[" .sspj / Images<br>(Source Assets) "]

    subgraph Convert ["Conversion Process"]
        DOCK[[" SS Importer dock<br>(Built-in Editor) "]]
        CLI[[" ssconverter-cli<br>(CLI Tool) "]]
    end

    subgraph Godot ["Godot Runtime (res://)"]
        BIN[" .ssab / .ssqb "]
        NODE[[ SpriteStudioPlayer2D ]]
        RT(" libssruntime ")
    end

    SS -- "Drag & Drop" --> DOCK
    SS -- "CI/CD or Manual" --> CLI
    DOCK -. "Auto-generate" .-> BIN
    CLI -. "Generate" .-> BIN

    BIN -- "Assign in Inspector" --> NODE
    NODE -. "High-speed playback" .-> RT
    NODE -- "Render" --> RENDER{{" Screen "}}

    classDef generated stroke-dasharray: 5 5;
    class BIN generated;
```

## Supported Versions

- **Godot Engine**: 4.7 or later.
- **SpriteStudio**: projects authored in SpriteStudio 7.6 or later.

## Related Repositories

- [SpriteStudio Docs](<https://cri-middleware.github.io/SpriteStudio-Docs/>) — the documentation portal for the SDK and its official players.
- [SpriteStudio-SDK](<https://github.com/cri-middleware/SpriteStudio-SDK>) — the SDK itself, providing `libssruntime` / `libssconverter`.
- [SSConverterGUI](<https://github.com/cri-middleware/SSConverterGUI>) — a standalone desktop GUI for converting `.sspj` without a player.

## Migration

For instructions on migrating from v1.x, please refer to the [Migration Guide](<https://cri-middleware.github.io/SSPlayerForGodot/migration_from_v1/index.md>).

## License

See [License](<https://cri-middleware.github.io/SSPlayerForGodot/license/index.md>).

For third-party library licenses (such as FlatBuffers and SpriteStudio-SDK dependencies), see [Third-Party Notices](<https://cri-middleware.github.io/SSPlayerForGodot/third_party_notices/index.md>).
