Index of every page on this site: llms.txt
All skills
oahc09 avatar

/cocosair-animation-tween

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Animate tweens and AnimationClip tracks with one step clock. Use to loop a sequence on a target, reverseTime, clean up playback or diagnose unavailable pose graphs.

  • 9 files
  • 52.5 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair-animation-tween

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestriggers.md

≈363 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Cocos AIR animation and tween triggers

Source annotations refer to the AIR checkout.

When to use what

  • "move/scale/rotate something over time, no assets" -> tween(target).to(...).start(); the chain is a sequence and repeatForever() loops the union (tween-ops.md).
  • "run two motions at once on one target" -> just start two tweens on the same target; they time independently. parallel(...) is only for packing a parallel group into a larger sequence.
  • "reusable keyed animation, or a glTF clip" -> Animation component + AnimationClip; build the clip in code with animation.VectorTrack and animation.TrackPath (animation-clip.md).
  • "loop a clip" -> set clip.wrapMode = AnimationClip.WrapMode.Loop before play, or set state.wrapMode (which resets time and repeatCount) (animation-clip.md).
  • "per-frame game logic" -> Component.update(dt) / lateUpdate(dt) / this.schedule(cb, interval); multiply by dt, never assume a fixed frame rate (docs/manual/how-to-update-things.md).
  • "deterministic frames for a test or evidence capture" -> createStepClock(); begin() then await step(dt) then end(), and never run it while the real pacer is live (step-clock.md).
  • "state-machine / pose-graph animation" -> not published; marionette and procedural-animation are out of the default feature set (animation-clip.md).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ed38648. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
layer
subsystem
All 1 allowed tools
Read Edit Write Bash
Other metadata
compatibility
Cocos AIR source checkout or installed cocosair.js package. Browser rendering requires WebGL 2; source tooling requires Node.js >=18. Use the host-provided tools and user-authorized workspace.
when_to_use
[
  "move or rotate a node over time",
  "a clip plays once instead of looping",
  "a tween will not reverse",
  "track classes fail to import by name",
  "step deterministic frames without a second live clock"
]
owns
[
  "tween",
  "animation-clip",
  "track-path",
  "wrap-mode",
  "step-clock",
  "pose-graph-limits"
]
not_for
[
  "glTF loading and instance setup -> cocosair-gltf",
  "skeletal binding and morph weights -> cocosair-skinning-morph",
  "scalar easing calculations -> cocosair-math"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "使用 AnimationClip、Animation 和 tween,管理播放模式、组合及单一时钟。用于动画播放、补间回收或确定性步进问题。"
}

README badge

README badge for oahc09/cocosairjs/cocosair-animation-tween