ecspresso
    Preparing search index...
    • Switch an entity's current animation at runtime. Resets state if switching to a different animation (or restart=true).

      Parameters

      • ecs: SpriteAnimationWorld
      • entityId: number
      • animation: string
      • Optionaloptions: { restart?: boolean; speed?: number }

      Returns boolean

      false if entity has no spriteAnimation or animation name doesn't exist