animations-tweens

Animate Decentraland SDK7 entities with Animator clips, Tweens, and TweenSequence chains.

Updated Sep 11, 2026
One-click install
npx skills add https://github.com/ansonj-dev/neon-reverse --skill animations-tweens-ansonj-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: animations-tweens
Source: https://github.com/ansonj-dev/neon-reverse/tree/main/agent/skills/animations-tweens
Command: npx skills add https://github.com/ansonj-dev/neon-reverse --skill animations-tweens-ansonj-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing and correctly implementing the right animation approach in Decentraland SDK7 is error-prone: GLTF clips silently fail when not registered, tweens teleport entities when start values are wrong, and per-frame clip switching causes serialization overhead. This Skill provides verified patterns and pitfalls for Animator, Tween, and TweenSequence so animations work the first time. ## Core Features & Use Cases - GLTF Animation Control: Play, blend, and stop skeletal, object, and shape-key clips with Animator, including lazy clip registration and holding a model at its first frame. - Procedural Motion with Tweens: Move, rotate, scale, and scroll textures with finite or continuous tweens, easing functions, and mid-travel retargeting from the live Transform position. - Sequences and Completion Detection: Chain tweens with TweenSequence, loop with TL_RESTART or TL_YOYO, and edge-detect clip or tween completion without timer guessing. - Use Case: A creator ports an SDK6 door that spawns open instead of closed; the Skill supplies the verified fix of holding frame 0 with a playing, speed-0 Animator state. ## Quick Start Ask the assistant to animate a sliding door in your Decentraland scene using a Tween that moves from its current position to a target over two seconds.

Frequently Asked Questions about animations-tweens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I play a GLTF animation in Decentraland SDK7?

Create an Animator component with a states array listing each clip, then call Animator.playSingleAnimation(entity, clipName). The clip must already exist in states or the call silently returns false when the Animator was authored in code.

Animator vs Tween in Decentraland: which should I use?

Use Animator when the animation is baked into a .glb model, such as a character walk or door open clip. Use Tween for procedural A-to-B motion of position, rotation, or scale, and a custom engine.addSystem for per-frame control.

Why does playSingleAnimation do nothing in Decentraland SDK7?

playSingleAnimation returns false and does nothing when the clip name is not present in the entity's Animator.states array. Add the clip to states at Animator.create time or use a lazy-registration wrapper that appends missing states.

Why does my Decentraland model spawn playing the wrong animation?

Without an Animator component, the renderer autoplays one clip from the GLB and holds its final frame, so doors or lids can spawn open. Add Animator.create with the intended default clip set to playing, or hold frame 0 with speed 0.

How do I detect when a tween or animation finishes in SDK7?

For tweens, call tweenSystem.tweenCompleted(entity) inside an engine.addSystem. For non-looping clips, poll the read-only Animator.get and edge-detect the playing flag flipping from true to false.

Why does my Decentraland tween teleport the entity to the origin?

An omitted start in Tween.Mode.Move is treated as (0,0,0), so the entity teleports to the scene origin before moving. Always pass Transform.get(entity).position as start to move from the live current position.