Skip to main content

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​

  1. Find the closest game animation: the same kind of weapon or creature, and the same kind of blow.

  2. Copy its frame grid:

    • its length, keyframes, impact frame and holdLastKeyframe;
    • from its animation set, its Speed, BlendingDuration and Looping. Player sets are in Server/Item/Animations/*.json.
  3. Change the poses, not the timings.

  4. Work at 60 frames per second, on whole frames.

  5. Derive the server's timings from the impact frame: the interaction's hit (or the boss's attack) lands at impact frame / 60 / Speed seconds.

  6. 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.

  7. Splice chained animations:

    • the first frame of one is the last of the one before, with BlendingDuration 0;
    • when returning to the guard, the last frame is frame 0 of the weapon's Idle.
  8. Make the variants: a _FPS version of every player animation, and a _Moving one if it can play while walking.

  9. 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.

  10. 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.
  11. 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.

    MeasureGobliterator
    Key moments per frame in the strike0.8–1.0
    Key moments per frame in charge and recovery0.6–0.8
    Share of the rig moving in an attack60–95 %
    Clips per ability3: 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:

    1. 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.
    2. Minimum density: 0.7 key moments per frame in the strike, 0.5 in charge and recovery, 0.2 in loops.
    3. 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.
    4. Whole body: at least 70 % of the rig moves in an attack. The feet stay planted and the weight drops before the blow.
    5. A sharp impact: smooth interpolation, linear only on the impact frame and the next; the pose holds for 3–6 frames there.
    6. Exaggeration: wind up the other way by 20–40° before the blow; overshoot it by 10–15 % and come back.
    7. A _Moving variant for ranged attacks that can be made while walking.
    8. Impact frames in the tables below, so the code uses the same numbers.

Player Weapons (60 fps)​

The impact frame is approximate: it is where the arm keyframes cluster.

Game animationFramesImpactSet: Speed, blendingUse
Longsword Swing_Left, Swing_Down2510–150.8cuts
Longsword Stab_Charged202–51, blend 0charged thrust
Battleaxe Swing_Down6020–301heavy blow
Battleaxe Downstrike_Charging60—1.5charging
Battleaxe Downstrike_Leap30, looping—loopingairborne
Battleaxe Downstrike_Charged305 (settles 10–15, recovers to 30)1.15, blend 0.05landing strike
Battleaxe Swing_Down_Frontflip_Flip30, holds its last frame—1airborne flip
Battleaxe Swing_Down_Frontflip_Chop305–7blend 0strike after the flip
Mace Swing_Down6022–320.667blow
Mace Swing_Down_Charging60—0.34charging
Mace Swing_Down_Falling60, looping—blend 0.3, loopingfalling
Mace Swing_Down_Charged604–8 (settles 20, recovers 40–60)1.15, blend 0landing strike
Daggers Pounce_Stab3308–161, blend 0.1sweep

Bosses and Large Creatures (60 fps)​

Game animationFramesTimings
Golem Guardian (a game boss): Ground_Slam, Pound_*, Clap100wind-up 0–45 (0.75 s), impact 45–55, recovery to 80
Golem Guardian: Rumble, Grind18, 28short loops
Trork, axe: Swing_Down90wind-up 0–35, impact around 56, recovery to 90
Yeti: Swing_*, Backswing_*90wind-up 0–20, impacts 25–45
Elite skeleton, sword: Swing_Left120wind-up to about 38, impact 38–45
Elite skeleton, sword: Downstrike_Charged, Downstrike_Stuck, Downstrike_Stuck_End30, 90 looping, 45landing strike, sword stuck in the ground, pulling it out
Grizzly bear: Swipe_*67impact 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.