Sequences

Create a sequence for a sprite

Creates a composed animation sequence by ordering existing animations into clips. No credits are charged — manual composition is free. Only animations belonging to the same sprite may be referenced.

post/v1/sprites/{spriteId}/sequences

Request

  • Base URL: https://api.sprixen.com
  • URL: https://api.sprixen.com/v1/sprites/{spriteId}/sequences
  • Auth: bearer (a scheme the document does not define)

Path parameters

spriteIdstring required

Sprite ID

Request body

namestring required

Human-readable name for the sequence

loopMode'forever' | 'once' | 'pingpong'

How the sequence loops: forever, once, or pingpong

metadataobject

Free-form metadata (tags, notes, etc.)

Example request

{
  "name": "intro-to-attack",
  "clips": [
    {
      "id": "c1",
      "animationId": "clx_abc123",
      "repeat": 2,
      "speedMultiplier": 1,
      "transitionOut": {
        "type": "cut",
        "durationMs": 200,
        "holdFrameIndex": 7
      }
    }
  ],
  "metadata": {
    "tags": [
      "combat",
      "boss"
    ]
  }
}

Response

Sequence created

Changes

No recorded changes to this operation across all 1 revision of this API.