Creating Animations
New animations follow the frame timings of the game's own, or close ones, so that they look native. This applies to weapons, runes and bosses.
How
-
Find the closest game animation: the same kind of weapon or creature, and the same kind of blow.
-
Copy its frame grid:
- its length, keyframes, impact frame and
holdLastKeyframe; - from its animation set, its
Speed,BlendingDurationandLooping. Player sets are inServer/Item/Animations/*.json.
- its length, keyframes, impact frame and
-
Change the poses, not the timings.
-
Work at 60 frames per second, on whole frames.
-
Derive the server's timings from the impact frame: the interaction's hit (or the boss's attack) lands at impact frame / 60 /
Speedseconds. -
Keep the timings the request gives: if it names one, such as "held in the ground 0.5 s", keep that stretch (30 frames) and let the rest follow the game's grid.
-
Splice chained animations:
- the first frame of one is the last of the one before, with
BlendingDuration0; - when returning to the guard, the last frame is frame 0 of the weapon's
Idle.
- the first frame of one is the last of the one before, with
-
Make the variants: a
_FPSversion of every player animation, and a_Movingone if it can play while walking. -
Mind how weapon animations end. When one ends, the game does not keep its last frame, even with
holdLastKeyframe: it returns to the movement pose (falling, idle). A pose that has to be held needs one of three things:- another animation replacing it before it ends, as the battleaxe's chop does 0.4 s into its flip;
- enough length for the whole hold;
- a loop, like the mace's falling pose.
Example: the Flame Longsword's flip lasted 30 frames, but the jump lasts 1.2 s, so the normal blade-up pose came back halfway down. It was lengthened to 150 frames that keep the pose.
-
Make the motion natural, not robotic:
- Few keyframes, smooth interpolation: use a few keyframes on the game's grid, never a key on every frame computed by code, which moves the whole body as one block.
- Anticipation, follow-through and weight: load up the other way before the blow; overshoot it and settle afterwards; let the feet and hips land the blow while the free arm counterbalances.
- Overlapping action: the hips start, then the chest, shoulder, arm, hand and weapon, 1–3 frames apart. The head looks first.
- Secondary motion: capes, cloth and dangling parts trail the body by 2–4 frames and settle after it.
- Combos: the end of one blow is a good start for the next.
-
Bosses and mini-bosses: the Gobliterator standard. Measured on the game's Gobliterator. Each of its parts has few keys, but the keys are staggered against the other parts, so almost every frame some part of the body reaches a pose.
Measure Gobliterator Key moments per frame in the strike 0.8–1.0 Key moments per frame in charge and recovery 0.6–0.8 Share of the rig moving in an attack 60–95 % Clips per ability 3: charge, strike, recovery A key moment is a frame where any part has a key; several parts keyed on the same frame count once. Measure with
python -I prefabs/src/anim_check.py <folder of one model's animations>. The rules:- Three clips per ability:
_Charge: the anticipation. It lasts as long as the attack's marker and can loop if the attack waits longer._Strike: the blow, 24–30 frames, with the impact between frames 4 and 8._Recover: 30–60 frames, ending held.
- Minimum density: 0.7 key moments per frame in the strike, 0.5 in charge and recovery, 0.2 in loops.
- Staggered motion: the hips start; the torso 2 frames later, the shoulder 2 more, the elbow 3 and the hand or weapon 4. Dangling parts follow 6–10 frames later and bounce once or twice.
- Whole body: at least 70 % of the rig moves in an attack. The feet stay planted and the weight drops before the blow.
- A sharp impact: smooth interpolation, linear only on the impact frame and the next; the pose holds for 3–6 frames there.
- Exaggeration: wind up the other way by 20–40° before the blow; overshoot it by 10–15 % and come back.
- A
_Movingvariant for ranged attacks that can be made while walking. - Impact frames in the tables below, so the code uses the same numbers.
- Three clips per ability:
Player Weapons (60 fps)
The impact frame is approximate: it is where the arm keyframes cluster.
| Game animation | Frames | Impact | Set: Speed, blending | Use |
|---|---|---|---|---|
Longsword Swing_Left, Swing_Down | 25 | 10–15 | 0.8 | cuts |
Longsword Stab_Charged | 20 | 2–5 | 1, blend 0 | charged thrust |
Battleaxe Swing_Down | 60 | 20–30 | 1 | heavy blow |
Battleaxe Downstrike_Charging | 60 | — | 1.5 | charging |
Battleaxe Downstrike_Leap | 30, looping | — | looping | airborne |
Battleaxe Downstrike_Charged | 30 | 5 (settles 10–15, recovers to 30) | 1.15, blend 0.05 | landing strike |
Battleaxe Swing_Down_Frontflip_Flip | 30, holds its last frame | — | 1 | airborne flip |
Battleaxe Swing_Down_Frontflip_Chop | 30 | 5–7 | blend 0 | strike after the flip |
Mace Swing_Down | 60 | 22–32 | 0.667 | blow |
Mace Swing_Down_Charging | 60 | — | 0.34 | charging |
Mace Swing_Down_Falling | 60, looping | — | blend 0.3, looping | falling |
Mace Swing_Down_Charged | 60 | 4–8 (settles 20, recovers 40–60) | 1.15, blend 0 | landing strike |
Daggers Pounce_Stab3 | 30 | 8–16 | 1, blend 0.1 | sweep |
Bosses and Large Creatures (60 fps)
| Game animation | Frames | Timings |
|---|---|---|
Golem Guardian (a game boss): Ground_Slam, Pound_*, Clap | 100 | wind-up 0–45 (0.75 s), impact 45–55, recovery to 80 |
Golem Guardian: Rumble, Grind | 18, 28 | short loops |
Trork, axe: Swing_Down | 90 | wind-up 0–35, impact around 56, recovery to 90 |
Yeti: Swing_*, Backswing_* | 90 | wind-up 0–20, impacts 25–45 |
Elite skeleton, sword: Swing_Left | 120 | wind-up to about 38, impact 38–45 |
Elite skeleton, sword: Downstrike_Charged, Downstrike_Stuck, Downstrike_Stuck_End | 30, 90 looping, 45 | landing strike, sword stuck in the ground, pulling it out |
Grizzly bear: Swipe_* | 67 | impact around 18–25 |
Bosses wind up for a long time so their blows can be dodged: the Golem Guardian warns 0.75 s before each one. Chambers' bosses keep that measure. Their warning lasts as long as the wind-up of the game animation they are based on, and the server's damage lands on its impact frame.
Paths: Common/Characters/Animations/Items/Dual_Handed/<weapon>/Attacks/ for the player, Common/NPC/<group>/<creature>/Animations/ for creatures.