Animation in Game Design: From Theory to Practical Solutions

Lecture



Lecture plan: Animation in games

1. Introduction to animation

  • What animation in games is
  • The role of animation in the gameplay experience (UX / immersion)
  • How game animation differs from film and cartoons
  • Its connection to gameplay (not just visuals, but part of the mechanics)

2. Main types of animation

  • 2D animation
    • frame-by-frame
    • sprite-based
  • 3D animation
    • skeletal animation
    • morph targets (blend shapes)
  • Procedural animation
  • Physics-based animation
  • Motion Capture (MoCap)

3. Basic principles of animation (the classic 12 Disney principles, adapted for games)

  • squash & stretch
  • anticipation
  • follow-through
  • timing
  • easing (in/out)
  • exaggeration
    How they are applied in games (not all of them are always needed)

4. Animation as part of gameplay

  • The impact of animation on:
    • control responsiveness
    • readability of actions
  • Concepts:
    • telegraphing (pre-signaling an attack)
    • hit feedback
    • cancel animation
  • Balance:
    • realism vs control convenience

5. Animation Pipeline

  • Stages:
    1. Concept
    2. Rigging
    3. Creating animations
    4. Importing into the engine
    5. Setting up states
  • Roles:
    • animator
    • technical animator
    • game designer

6. Animation Systems in game engines

  • State Machine (Finite State Machine)
  • Blend Trees
  • Animation Layers
  • Root Motion vs In-place animation

Examples:

  • Unity Animator Controller
  • Unreal Engine Animation Blueprint

7. Integrating animation and code

  • Animation Events
  • Connection to logic:
    • damage
    • triggers
  • Sync with physics and collisions
  • Problems:
    • desync
    • lag
    • state conflicts

8. Procedural and dynamic animation

  • IK (Inverse Kinematics)
  • ragdoll
  • adapting to the environment:
    • uneven terrain
    • stairs
  • blending with keyframe animation

9. Optimizing animation

  • Animation compression
  • Limiting bones
  • LOD for animation
  • CPU vs GPU load

10. Mistakes and anti-patterns

  • input lag from long animations
  • poor transitions between states
  • lack of feedback
  • over-animation (overload)

11. Case studies from games

  • combat systems (souls-like, fighting games)
  • shooters (weapon reaction)
  • platformers (jump precision)

Examples:

  • Dark Souls — telegraphing attacks
  • Overwatch — character readability

13. The future of animation in games

  • AI animation
  • real-time motion synthesis
  • procedural characters
  • neural-network animations

14. Conclusion

  • Animation = part of game design, not just graphics
  • Good animation:
    • improves gameplay
    • enhances UX
    • affects balance

12. Practical part

  • Break down:
    • idle / walk / run / attack
  • Build a simple FSM:

    Idle → Walk → Run → Attack → Idle
  • Add:
    • transition conditions
    • animation events

1. Introduction to animation

Let's go through the introduction to animation in games the way it's usually explained in a lecture, but with an emphasis on practical understanding.

1. What animation in games is

Animation in Game Design: From Theory to Practical Solutions

Animation in games — is the change of an object's state over time that visually conveys actions, reactions, and processes in the game world.

Important:
in games, animation is not just «movement for the sake of beauty», but a system controlled by the player and the game's logic.

Examples:

  • the character walks → the walk animation plays
  • you press the attack button → an animation + damage is triggered
  • the character takes damage → hit reaction

Key idea:
animation = the visual representation of game logic

2. The role of animation in the gameplay experience (UX / immersion)

Animation directly affects how the player feels the game.

2.1. Responsiveness

  • you press a button → the character reacts immediately
  • if there is a delay → the game feels «heavy»

bad animation = a feeling of input lag

2.2. Feedback

Animation tells the player:

  • whether they hit the enemy
  • whether they took damage
  • whether they performed an action

Examples:

  • weapon recoil
  • knocking the enemy back
  • flashing when taking damage

2.3. Readability

The player should understand what is happening without the UI:

  • the wind-up before an attack
  • preparing for a jump
  • charging an ability

2.4. Immersion

Good animation:

  • makes the world feel «alive»
  • conveys weight, inertia, emotions

Bad animation:

  • breaks the sense of reality

Animation in Game Design: From Theory to Practical Solutions

3. How it differs from film and cartoons

Here is the key difference:

Criterion Games Film / cartoons
Control The player The director
Time Unpredictable Fixed
Logic Interactive Linear
Interruption Possible (cancel) Not possible
Goal Gameplay Visual storytelling

The main difference

In film:
animation = storytelling

In a game:
animation = a control tool

An important point

In film you can:

  • create a long, beautiful scene

In a game:

  • a long animation = player frustration

4. Connection to gameplay

Animation in Game Design: From Theory to Practical Solutions
Animation directly affects the game's mechanics.

1. Animation = timing

Every action has phases:

  • preparation (startup)
  • active phase (hit)
  • recovery

this is the foundation of combat systems (for example, in Dark Souls)

2. Telegraphing (pre-signal)

Animation warns the player:

  • the enemy raises their weapon → a strike is coming

without this, the game feels «unfair»

3. Hitboxes and synchronization

  • the damage must coincide with the moment of the hit
  • if it doesn't → the game feels «janky»

4. Cancel and control

The player can:

  • interrupt animations
  • combine actions
  • this is the foundation of:
  • fighting games
  • action games

5. Game Feel

Animation creates the «feel of the game»:

  • the character's weight
  • speed
  • smoothness

Takeaway

Animation = visualization of gameplay + feedback + control

Animation in games is:

not just visuals
not just «pretty»

It's:

  • part of the controls
  • part of the mechanics
  • part of the UX
  • part of the balance

2. Main types of animation

Let's go through the main types of animation in games — with a practical understanding of where and why each is used.

Animation in games can be roughly divided into several major categories:

  • 2D animation
  • 3D animation
  • procedural and physics-based
  • motion capture (MoCap)

2.1 2D animation

Animation in Game Design: From Theory to Practical Solutions

Animation in Game Design: From Theory to Practical Solutions
Frame-by-frame

Essence:
Each frame is drawn separately.

like a cartoon, only in a game

Example:

  • a character - 8–12 frames of walking
  • an explosion animation

Pros:

  • maximum expressiveness
  • full control over the style

Cons:

  • time-consuming
  • a lot of memory

Sprite-based animation

Essence:
A sprite sheet is used — a set of frames in a single texture.

the game simply switches between frames quickly

Example:

  • idle / run / jump
  • UI animations

Pros:

  • simple to implement
  • high performance

Cons:

  • limited flexibility
  • hard to scale

2.2 3D animation

Skeletal animation

Essence:
The model has bones (a rig) → they move → they pull the mesh.

the main standard in games

Example:

  • a character running
  • shooting
  • hand animation

Pros:

  • flexibility
  • memory efficiency
  • animations can be blended

Cons:

  • requires rigging
  • harder to set up

Morph targets (blend shapes)

Essence:
The model stores several shape variants → they are smoothly blended.

mesh deformation

Example:

  • facial expressions
  • emotions
  • blinking

Pros:

  • high level of detail
  • realistic faces

Cons:

  • heavy on memory
  • poorly suited for large movements

2.3 Procedural animation

Essence:
The animation is generated in real time by code, rather than in advance.

Examples:

  • the legs adjust to the surface (IK)
  • the character leans when turning
  • dynamic aiming

Pros:

  • adaptation to the environment
  • fewer pre-recorded animations

Cons:

  • complex implementation
  • can look «unnatural»

2.4 Physics-based animation

Essence:
The animation is created through a physics engine rather than by hand.

Examples:

  • ragdoll (a falling body)
  • destruction
  • objects shaking

Pros:

  • realism
  • unpredictability

Cons:

  • loss of control
  • can break gameplay

2.5 Motion Capture (MoCap)

Essence:
Recording the movements of a real person → transferring them into the game.

Examples:

  • realistic walking
  • combat movements
  • cutscenes

Used in games like The Last of Us

Pros:

  • high realism
  • fast results for complex movements

Cons:

  • expensive
  • requires refinement
  • not always suitable for stylized games

2.6 AI-generated animation

The animation is created or supplemented by neural networks / ML models, rather than only by pre-recorded data.

This is the next step after procedural animation.

1. One-time generation (offline / precomputed)

Essence:
The animation is generated once during development, and then used like a regular one.

Examples:

  • generating walk/run cycles
  • creating transitions between animations
  • upscaling or «reviving» old animations
  • automatic generation of in-between frames

How it's used:

  • the designer sets the conditions → the AI generates the animation
  • it's saved as a clip (like a regular skeletal animation)

Pros:

  • speeds up production
  • reduces manual labor
  • helps with variations

Cons:

  • requires review and correction
  • the result isn't always predictable

2. Real-time generation (runtime AI animation)

Essence:
The animation is created right during gameplay, depending on the situation.

Examples:

  • the character adapts its gait to the terrain
  • dynamic combat movements
  • reacting to the environment (collisions, cover)
  • crowd behavior (crowd animation)

Specific technologies:

  • motion matching
  • pose prediction
  • reinforcement learning animation
  • neural locomotion

Pros:

  • maximum adaptability
  • unique movements
  • fewer pre-recorded animations

Cons:

  • high load
  • complex integration
  • possible motion «artifacts»

Comparison of the two approaches

Type When it's used
Offline AI speeding up development
Runtime AI dynamics and adaptation

Where it's already being used

  • advanced locomotion systems
  • sports games (body reactions)
  • crowd simulation
  • experimental AAA projects

Connection to other types

AI animation doesn't replace everything; it enhances existing approaches:

  • skeletal + AI → smart movements
  • procedural + AI → more natural adaptation
  • MoCap + AI → enhancement and variations

An important thought

Before:

animation = pre-recorded clips

Now:

animation = data + algorithms + AI

Overall classification

  • 2D (frame-by-frame, sprite)
  • 3D (skeletal, blend shapes)
  • procedural
  • physics-based
  • MoCap
  • AI-generated animation
    • offline (generated during development)
    • runtime (in real time)

Type Where it's used
2D frame-by-frame indie, pixel-art
2D sprite-based mobile, UI
Skeletal 3D almost all 3D games
Blend shapes faces
Procedural IK, adaptation
Physics ragdoll, destruction
MoCap AAA realism

In real games, a combination is almost always used:

  • skeletal + procedural (very often)
  • skeletal + physics (ragdoll)
  • MoCap + manual correction

A short formula

Modern animation = keyframes + code + physics

The future of animation = procedural + physics + AI

3. Basic principles of animation (in games)

Let's go through the basic principles of animation (from the classic 12 Disney principles) and, most importantly — how they are adapted for games, where there are controls and gameplay.

Important: in games, the principles are used not for the sake of beauty, but for the sake of
readability, responsiveness, and game feel

Animation in Game Design: From Theory to Practical Solutions

1. Squash & Stretch

Animation in Game Design: From Theory to Practical Solutions

Essence:
the object deforms as it moves (compresses/stretches)

In games:

  • jump → the character slightly «squashes» before the start
  • landing → «flattening»
  • hit → a brief deformation

Why:

  • a sense of weight
  • amplifying the impact
  • makes the movement feel «alive»

Note:

in realistic games it's used very subtly or imperceptibly

2. Anticipation

Animation in Game Design: From Theory to Practical Solutions

Essence:
there is a preparation before the action

In games:

  • before a jump → crouching
  • before an attack → a wind-up
  • before a shot → raising the weapon

Why:

  • telegraphing (pre-signaling to the player)
  • fairness of the gameplay
  • improves readability

Balance:

  • too long → input lag
  • too fast → the player doesn't have time to react

3. Follow-through & Overlapping

Animation in Game Design: From Theory to Practical Solutions

Essence:
movement doesn't stop instantly → body parts «catch up»

In games:

  • hair/cape keep moving
  • the weapon «follows through» after a strike
  • the body moves slightly with inertia

Why:

  • realism
  • a sense of inertia

In games:

this is often done through:

  • procedural animation
  • physics (cloth, ragdoll)

4. Timing

Animation in Game Design: From Theory to Practical Solutions

Essence:
how many frames a movement lasts

In games (a CRITICAL principle):

  • attack speed
  • jump duration
  • recovery after an action

Why:

  • game balance
  • difficulty
  • the sense of control

Example:

in Dark Souls:

  • long timing = a difficult game

Important:

timing = not just animation
it's part of the mechanics

5. Easing (ease-in / ease-out)

Essence:
movement doesn't start or end abruptly

In games:

  • smooth acceleration of the character
  • slowing down before stopping
  • the camera

Why:

  • naturalness
  • perceptual comfort

But:

sometimes easing is deliberately removed:

  • to make the controls snappy (arcade)

Animation in Game Design: From Theory to Practical Solutions

6. Exaggeration in animation

Animation in Game Design: From Theory to Practical Solutions

Essence:
movements are amplified more than in reality

In games:

  • a big wind-up (bigger than in reality)
  • strong recoil (bigger than in reality)
  • exaggerated hit reaction
  • a smile, a heartbeat (bigger than in reality)
  • to squeeze through somewhere you have to compress (more than in reality)
  • to lift something you have to strain harder (more than in reality)

Why:

  • readability
  • spectacle
  • enhancing feedback

Example:

in Overwatch:

  • the movements are hyper-expressive

How this is applied in games

The main difference from classic animation

in cartoons:

  • expressiveness matters

in games:

  • controllability + readability matter

Balancing the principles

Principle Importance in games
Timing critical
Anticipation critical
Exaggeration very important
Easing depends on the genre
Follow-through secondary
Squash & Stretch rare (in realism)

A practical rule

if a principle interferes with the controls — it's removed

An example of a conflict

  • a beautiful long attack animation
  • a fast, responsive attack

Takeaway

The principles of animation in games are:

  • not dogma
  • but tools

A short formula

Animation principles → Game Feel → Gameplay

If you'd like, I can go further:

  • break down Timing + Frame Data (as in fighting games)
  • or draw a diagram: how the principles affect UX and gameplay

4 Animation as part of gameplay

Let's go through animation as part of gameplay — this is a key topic, where game design directly intersects with animation.

In games, animation is not decoration,
but a tool for control and communication with the player

Animation in Game Design: From Theory to Practical Solutions

4.1 Control responsiveness in game animation

Essence:
how quickly the game responds to the player's actions

How animation affects it:

  • you press a button → the character should start moving immediately
  • long animations → a feeling of «sluggishness»

Examples:

  • a fast platformer → instant response
  • a heavy action game → deliberately slowed response
  • using input buffering

Problems:

  • anticipation that's too long
  • blocking actions during an animation
  • poor transitions between states

Solutions:

  • animation cancel
  • reducing startup
  • blending animations

Animation in Game Design: From Theory to Practical Solutions

4.2 Readability of actions in game animation

Essence:
the player should understand what's happening without the interface

What matters:

  • clear poses
  • understandable movements
  • visual accents

Examples:

  • a big wind-up = a strong attack
  • slow preparation = danger
  • the direction of the character's gaze

Animation in Game Design: From Theory to Practical Solutions

Example:

in Overwatch
every character is readable by silhouette and animation

4.3 Telegraphing (pre-signal) in game animation

Essence:
the animation warns the player about an action

Examples:

  • an enemy raises their weapon
  • a boss «charges» a strike
  • a character crouches before a jump

Why:

  • fairness of the game
  • the ability to react

A classic:

in Dark Souls
the game is built on telegraphing attacks

Mistakes:

  • no pre-signal → a «cheap death»
  • too long → the game becomes easy

4.4 Hit Feedback

Essence:
the player should feel the hit

Elements:

  • hit animation (the enemy's reaction)
  • recoil
  • screen shake
  • hit stop (freezing the frame)

Why:

  • a sense of power
  • satisfaction from the action

Without feedback:

the hit feels «empty»

4.5 Cancel Animation

Essence:
the ability to interrupt an animation with another action

Examples:

  • canceling an attack into a dodge
  • combos in fighting games
  • interrupting a reload

Why:

  • responsiveness
  • gameplay depth
  • player control

Balance:

  • too much cancel → breaks the balance
  • too little → the controls feel «heavy»

4.6 Balance: realism vs control convenience

This is one of the main trade-offs in game design.

Realism:

  • smooth movements
  • inertia
  • long animations

downside: slow and less responsive

Convenience:

  • fast reactions
  • instant actions
  • cancel

downside: less realistic

Examples:

  • realism → Red Dead Redemption 2
  • balance → Dark Souls
  • arcade → Overwatch

Takeaway

Animation affects:

  • control
  • perception
  • balance
  • the feel of hits

The main idea

The player feels the game through animation

A short formula

Animation → Feedback → Control → Game Feel

5. Animation Pipeline

Let's go through the Animation Pipeline — how animation travels from an idea to a working mechanic in the game.

The pipeline is the chain of stages that an animation goes through
from concept → to working in the game engine

The general scheme

Simplified:
Concept → Rigging → Animation → Import → Setup → Gameplay

Animation in Game Design: From Theory to Practical Solutions

5.1 Concept

Essence:
defining how the character should move

What's done:

  • references (videos, games, films)
  • movement style (realism / arcade)
  • a list of animations:
    • idle
    • walk / run
    • jump
    • attack

The role of game design:

  • sets the requirements:
    • speed
    • timings
    • readability

Mistake:

if the concept is weak → everything gets redone later

5.2 Rigging in game animation

Essence:
creating a skeleton (bones) inside the model

What's done:

  • bones are added
  • the connections are configured
  • binding the mesh to the bones (skinning)

Result:

the model can be moved like a «puppet»

Mistakes:

  • a bad rig → the animation breaks
  • unnatural deformations

Animation in Game Design: From Theory to Practical Solutions

5.3 Creating animations

Essence:
creating the character's movements

Methods:

  • keyframe animation (by hand)
  • MoCap
  • procedural (partially)

A typical set:

  • idle
  • walk / run
  • jump
  • attack
  • hit reaction

Important:

  • this is where the following is established:
  • timing
  • anticipation
  • game feel

5.4 Importing into the engine

Animation in Game Design: From Theory to Practical Solutions

Essence:
transferring the animation into the game engine

Tools:

  • Unity
  • Unreal Engine

What's configured:

  • FBX import
  • the skeleton
  • clips (splitting up the animations)
  • root motion

Common problems:

  • scale
  • rotations
  • rig mismatch

5.5 Setting up states (Animation System)

Essence:
tying the animations into a system

Main elements:

State Machine

Idle → Walk → Run → Jump → Attack

Transitions

  • conditions:
    • speed
    • buttons
    • state

Blend Tree

  • smooth blending:
    • walk - run
    • movement directions

This is where the magic happens:

the animation becomes gameplay

5.6 Roles in the pipeline

Animator

Responsible for:

  • creating animations
  • expressiveness
  • the character's movement

Technical Animator (Tech Animator)

Responsible for:

  • rigging
  • integration into the engine
  • IK / procedural
  • optimization

Game Designer

Responsible for:

  • timings
  • balance
  • responsiveness
  • transition rules

Important:

the game designer says:

  • «the attack should be 0.3 sec»
    the animator makes it happen visually

Where problems most often arise

  • beautiful animation, but bad gameplay
  • poor transitions between states
  • delay between input and animation
  • hitbox and animation desync

Takeaway

The pipeline is:

not just producing animation
but turning it into a game system

A short formula

Concept → Rig → Animate → Import → System → Gameplay

A practical tip (important for development)

If you're making a game (especially with UI/logic like you have):

think not «animation», but:

Input → State → Animation → Gameplay effect

6. Animation Systems in game engines

Let's go through Animation Systems in game engines — this is the layer where a «set of clips» turns into a controllable system of character behavior.

The system's job: based on input (input, speed, flags)
choose, blend, and play the right animation at the right moment

A typical flow:

Input / AI → parameters (speed, isJump, attack) → Animation System → pose/movement
Animation in Game Design: From Theory to Practical Solutions

6.1 State Machine (Finite State Machine)

Essence:
the character is always in one state, and transitions between them based on conditions.

Example states

Idle → Walk → Run → Jump → Attack → Hit → Death
Transitions
  • by parameters:
    • speed > 0.1 → Walk
    • isJump = true → Jump
    • attackPressed → Attack

Why this matters

  • manages the animation logic
  • synchronizes with gameplay
  • prevents «chaos» among clips

Common mistakes

  • too many transitions → hard to maintain
  • state conflicts (for example, Jump + Attack)
  • delays from long transitions

Animation in Game Design: From Theory to Practical Solutions

6.2 Blend Trees

Animation in Game Design: From Theory to Practical Solutions

Essence:
smoothly blending several animations by parameters.

Example (speed)

  • 0 → Idle
  • 0.5 → Walk
  • 1 → Run

a smooth blend happens between them

Example (2D movement)

  • forward / backward / left / right
  • blending along two axes (X/Y)

Why:

  • remove «jerks» between states
  • make the movement natural

Mistakes:

  • bad clips → a strange blend
  • wrong weights → «broken» animation

6.3 Animation Layers

Animation in Game Design: From Theory to Practical Solutions

Animation in Game Design: From Theory to Practical Solutions

Essence:
splitting the animation up by body parts.

Example:

  • legs → running
  • upper body → shooting

they work at the same time

Mechanic:

  • layers + masks (which bones are involved)

Why:

  • flexibility
  • combining actions

Mistakes:

  • animation conflicts
  • «breaking» the pose
  • wrong masks

6.4 Root Motion vs In-place

This is one of the most important choices in the system.

Root Motion

Essence:
the character's movement comes from the animation

the animation «moves» the character

Pros:

  • realistic
  • precise movements

Cons:

  • harder to control
  • harder in networked games

In-place animation

Essence:
the animation plays «in place», and code handles the movement

the gameplay logic changes the position

Pros:

  • full control
  • convenient for multiplayer
  • predictability

Cons:

  • requires synchronization
  • less realistic

Practice:

  • AAA → often a mix
  • multiplayer → more often in-place

Examples in engines

Unity Animator Controller

  • a visual FSM
  • parameters (float, bool, trigger)
  • Blend Trees
  • Layers + Avatar Mask

a classic system

Unreal Engine Animation Blueprint

  • more flexible (a logic graph)
  • state machines + blend
  • you can write logic right in the graph
  • tightly coupled with Blueprint/C++

more powerful, but more complex

How it all works together

Input (buttons / AI)
        ↓
Parameters (speed, jump, attack)
        ↓
State Machine (choosing the state)
        ↓
Blend Tree (blending)
        ↓
Layers (combining body parts)
        ↓
Root / In-place (movement)
        ↓
Final animation

Takeaway

The Animation System is:

not just playing clips
but the engine for the character's movement logic

The key idea

Animation System = FSM + Blend + Layers + Movement logic

A practical tip

When you build a system (even in JS / a local engine):

think like this:

state = Idle | Walk | Run | Attack
params = {speed, isJump, attack}
render(animation(state, params))

7. Integrating animation and code

Let's go through Integrating animation and code — this is the place where the visuals «switch on» the gameplay. If there are mistakes here, the player immediately feels that the game is «janky».

An animation shouldn't just play
it should trigger events, change state, and synchronize with physics

A typical flow:

Input → State → Animation → Event → Gameplay (damage/effect)
Animation in Game Design: From Theory to Practical Solutions

7.1 Animation Events

Essence:
an event is inserted at a specific animation frame, which calls code.

Examples:

  • the hit frame → dealDamage()
  • a footstep → a footstep sound
  • a shot → spawn a bullet

Why this matters:

gameplay is tied to the moment of the movement, not to time «in the code»

Mistake:

  • damage earlier/later than the hit → a feeling that it «doesn't connect»

In engines:

  • Unity → Animation Events
  • Unreal Engine → AnimNotify / AnimNotifyState

7.2 Connection to gameplay logic

Damage

Essence:
damage is dealt on the right frame

Attack phases:

  • startup (preparation)
  • active (deals damage)
  • recovery

Implementation:

  • enabling the hitbox for several frames
  • an event in the animation → activates the damage

Triggers

Essence:
the animation triggers other events:

Examples:

  • open a door
  • activate a trap
  • start a cutscene

Important:

animation = part of the scenario

7.3 Synchronization with physics and collisions

Essence:
the animation must line up with:

  • the object's position
  • collisions
  • physics

Examples:

  • the hit must line up with the hitbox
  • the character shouldn't «slide»
  • the feet shouldn't sink through

Options:

  • root motion → movement from the animation
  • in-place → movement from code

Problems:

  • desync between pose and collision
  • «foot sliding» along the ground
  • incorrect collisions

7.4 Main problems

Desync

Essence:
animation ≠ gameplay

Examples:

  • the sword has already passed the enemy, but the damage comes later
  • the character is standing still, but is already «running» in the logic

Causes:

  • bad Animation Events
  • delays
  • synchronization errors

Lag (Latency / Delay)

Essence:
delay between the action and the result

Causes:

  • long anticipation
  • slow transitions
  • network delays

Solutions:

  • reducing startup
  • prediction (in multiplayer)
  • cancel animation

State Conflicts

Essence:
the character is simultaneously in incompatible states

Examples:

  • jump + attack + dodge
  • the animation doesn't match the state

Solutions:

  • a strict FSM
  • state priorities
  • locks

Takeaway

Integrating animation and code is:

synchronizing:

  • the visuals
  • the logic
  • the physics

The main idea

The player doesn't see the code
they see the animation
and judge from it whether the game works correctly

A short formula

Animation Event → Gameplay Action → Feedback

A practical tip (very important)

Even in a simple project:

// pseudocode
if (animationFrame === "hit") {
    dealDamage();
}
better:
  • tie events to the animation
  • rather than to timers

8. Procedural and dynamic animation

Let's go through Procedural and dynamic animation — this is what makes movements adaptive and “alive” rather than just played back from a template.

Unlike keyframe animation (pre-recorded),
procedural is created or adjusted in real time

The general idea

Keyframe animation + Procedural logic + Physics → Final movement
almost all modern games use a hybrid
Animation in Game Design: From Theory to Practical Solutions

8.1 IK (Inverse Kinematics)

Essence:
we set an end point (for example, the foot) → the system calculates the position of the bones itself.

Examples:

  • the feet stand flat on an uneven surface
  • the character places a foot on a step
  • a hand reaches for an object

Why this matters:

without IK:

  • the feet «hang in the air»
  • slide along the surface

How it works:

  • target → the foot's position
  • an algorithm calculates the joint angles

Cons:

  • requires tuning
  • can produce «broken» poses

8.2 Ragdoll (physics-based body animation)

Essence:
the character becomes a physical object with joints

Examples:

  • a character's death
  • a strong hit → being knocked back
  • a fall from a height

Pros:

  • realism
  • unique movements

Cons:

  • loss of control
  • can look «comical»

Often used:

the transition:

animation → ragdoll → back to animation

8.3 Adapting to the environment

Uneven terrain

What happens:
  • the feet adjust to the surface
  • the body leans

Without this:

  • the character «floats»
  • the feet pass through the ground

Stairs

Problem:

a normal animation doesn't line up with the steps

Solution:

  • IK for the feet
  • adjusting the body's position

Result:

the feet land precisely on the steps

Animation in Game Design: From Theory to Practical Solutions

8.4 Blending with keyframe animation

Essence:
procedural animation doesn't replace the regular one, it complements it

Example:

  • base animation → running
  • on top → foot IK
  • on top → body lean

Formula:

Final pose = keyframe + IK + physics + corrections

Use cases:

  • shooting on the run
  • aiming
  • reacting to the environment

Main problems

Artifacts

  • the feet jitter
  • the joints break

Performance

  • IK and physics load the CPU

Complexity

  • hard to debug
  • many parameters

Takeaway

Procedural animation:

makes movements adaptive
removes the «stiffness» of keyframe animation
improves realism and game feel

The main idea

without procedural:

  • animation = fixed

with procedural:

  • animation = alive and reacts to the world

A short formula

Keyframe + IK + Physics = Modern animation

If you'd like, I can go further:

  • break down how to implement IK (algorithm + pseudocode)
  • or lay out the architecture: how procedural fits into the animation system (FSM + layers)

9. Optimizing animation

Let's go through Optimizing animation — how to preserve movement quality without «killing» the FPS. In real projects this is a constant trade-off between visuals, memory, and performance.

Goal: reduce the load (CPU/GPU/memory),
without losing readability and «game feel»

Animation in Game Design: From Theory to Practical Solutions

9.1 Animation compression

Animation in Game Design: From Theory to Practical Solutions

Animation in Game Design: From Theory to Practical Solutions

Essence:
we reduce the volume of animation data.

How:

  • removing unnecessary keyframes (keyframe reduction)
  • simplifying curves (curve fitting)
  • quantization (less precise values)

Example:

was:

1000 frames

became:

200 frames + interpolation

Pros:

  • less memory
  • faster loading

Cons:

  • loss of precision
  • possible «jitter»

Practice:

for the background you can compress heavily
for the hero — carefully

9.2 Bone Optimization

Essence:
we reduce the number of bones and their influence.

Methods:

  • fewer bones in the model
  • limiting influence:
    • usually 2–4 bones per vertex
  • disabling unnecessary bones

Why this matters:

each bone = computation

Pros:

  • less load on the GPU
  • faster skinning

Cons:

  • worse deformation
  • less detail

Practice:

  • the face → many bones
  • distant NPCs → minimal bones

9.3 LOD for animation (Level of Detail)

Animation in Game Design: From Theory to Practical Solutions

Essence:
the farther the object — the simpler its animation.

Examples:

  • far away → only idle
  • medium → a simplified walk
  • close → full animation

Methods:

  • reducing the animation's FPS
  • disabling IK
  • disabling secondary motion

Important:

the player doesn't notice the simplification at a distance

Pros:

  • huge CPU savings

Cons:

  • abrupt switches (if poorly configured)

9.4 CPU vs GPU load

Animation in Game Design: From Theory to Practical Solutions

Animation in Game Design: From Theory to Practical Solutions

CPU (logic)

Handles:

  • FSM (state machine)
  • transitions
  • IK
  • procedural animation
  • events

GPU (rendering)

Handles:

  • skinning (mesh deformation)
  • final rendering

Balance:

CPU GPU
logic visuals
IK skinning
FSM rendering

Problems:

CPU bottleneck

  • many characters
  • complex IK
  • complex logic

FPS drops due to logic

GPU bottleneck

  • complex models
  • many bones
  • heavy skinning

FPS drops due to graphics

Solutions:

  • moving skinning to the GPU
  • simplifying IK
  • LOD
  • batching

Takeaway

Optimizing animation = a balance of:

  • memory
  • CPU
  • GPU
  • quality

The main idea

  • not all animations need to be «perfect»
  • they need to be good enough and fast

A short formula

Less data + smart processing = good performance

A practical tip (very important)

If you're building a system:

hero → maximum quality
nearby enemies → medium
distant enemies → minimum
this gives 10x the performance

10. Mistakes and anti-patterns

Let's go through Mistakes and anti-patterns in animation — these are the things that make a game «break» in how it feels, even if the graphics look good.

The main problem:
animation starts to interfere with gameplay instead of helping it

Animation in Game Design: From Theory to Practical Solutions

10.1 Input lag from long animations

Animation in Game Design: From Theory to Practical Solutions

Essence:
the player pressed a button → the character reacts with a delay

Causes:

  • long anticipation
  • blocking the controls during an animation
  • lack of cancel

How it feels:

  • «laggy»
  • «the character doesn't obey»

Example:

  • slow games (for example Dark Souls) use this deliberately
  • but in fast games — it's a mistake

Solutions:

  • shorten startup
  • add animation cancel
  • allow early transitions

10.2 Poor transitions between states

Essence:
animations switch abruptly or incorrectly

Examples:

  • idle → run with a «jerk»
  • the character «twitches»
  • the pose breaks

Causes:

  • a bad blend
  • wrong transition conditions
  • state conflicts

Consequences:

  • immersion breaks
  • readability worsens

Solutions:

  • use blend trees
  • tune the transition duration
  • check pose compatibility

10.3 Lack of feedback

Animation in Game Design: From Theory to Practical Solutions
Animation in Game Design: From Theory to Practical Solutions

Essence:
the player doesn't feel the result of their actions

Examples:

  • a hit lands, but the enemy doesn't react
  • a shot without recoil
  • no visual reaction

How it feels:

  • «empty»
  • «unclear whether it hit or not»

In good games (for example Overwatch):

  • strong hit feedback
  • a clear reaction

Solutions:

  • hit reaction animations
  • screen shake
  • recoil
  • sound + visuals

10.4 Over-animation (overload)

Essence:
too much movement → the player can't tell what's happening

Examples:

  • too much secondary motion
  • unnecessary movements
  • excessive effects

Problem:

  • readability drops
  • hard to predict actions

Especially critical:

  • PvP
  • fast games

Solutions:

  • simplifying movements
  • emphasis on key actions
  • reducing «noise»

Summary of all the mistakes

Mistake What it breaks
Input lag control
Poor transitions visual integrity
No feedback the feel of actions
Over-animation readability

The main idea

bad animation = bad gameplay
even if everything looks beautiful

The golden rule

Gameplay first → then beauty

A short formula

Clarity + Responsiveness > Realism + Beauty

A practical checklist

Before release, check:

  • is there a delay after input
  • are the actions clear without the UI
  • is there feedback
  • are there any unnecessary movements

Animation in Game Design: From Theory to Practical Solutions

11. Case studies from games

Let's go through Case studies from games — how different genres use animation not «for beauty», but as the foundation of mechanics and feel.

In each genre, animation solves different game-design problems

11.1 Combat systems (souls-like, fighting games)

The main role of animation:

  • convey timing
  • give the player the ability to react
  • define the difficulty

Example: Dark Souls

Key idea: Telegraphing

  • the enemy does a wind-up (anticipation)
  • the player reads the animation
  • makes a decision (dodge / block)

Why this works:

  • the player learns to «read» enemies
  • there are no random hits
  • difficulty = understanding the animation

Important:

  • attacks that are too fast → unfair
  • too slow → too easy

Fighting games (for example Street Fighter)

Key elements:

  • startup frames
  • active frames
  • recovery frames

The role of animation:

animation = frame data

Example:

  • a strike begins → you can't cancel it right away
  • a hit lands → a hit reaction is triggered
  • you can cancel → a combo

Conclusion:

in fighting games, animation = math + timing

11.2 Shooters (weapon reaction)

The main role:

  • feedback
  • the feel of the weapon
  • instant reaction

Example: Overwatch

Why animation matters:

  • recoil
  • muzzle flash
  • hit feedback

The player feels:

  • the power of the weapon
  • accuracy
  • the hit

Mistakes:

  • no recoil → a «toy» weapon
  • shot delay → bad UX

A feature of the genre:

priority = responsiveness
animation shouldn't interfere with shooting

11.3 Platformers (jump precision)

The main role:

  • control precision
  • predictability

What matters:

  • the moment the jump starts
  • the movement arc
  • the moment of landing

Animation affects:

  • the sense of height
  • air control
  • the character's «weight»

Techniques:

  • squash & stretch
  • anticipation before the jump
  • landing animation

Mistakes:

  • a delay before the jump
  • mismatch between animation and physics

Comparison of genres

Genre The role of animation
Souls-like telegraphing + timing
Fighting frame data + cancel
Shooter feedback + responsiveness
Platformer precision + control

The main idea

animation adapts to the genre
there's no universal solution

A deeper conclusion

  • in Dark Souls
    animation = difficulty
  • in Overwatch
    animation = readability + feel
  • in platformers
    animation = control

A short formula

Genre → Animation Role → Game Feel

A practical tip

When you design a mechanic, ask:

what should the player feel?

and based on that:

  • set up the timing
  • make the animation
  • add feedback

13. The future of animation in games

Let's go through The future of animation in games — this is one of the fastest-developing areas of game dev. Right now there's a shift from «recorded movements» to generated and adaptive systems.

The main trend:
from static animations → to living ones, generated in real time

13.1 AI animation

Essence:
the animation is created or supplemented using machine learning

What the AI does:

  • predicts poses
  • generates transitions
  • improves MoCap
  • adapts movements

Example:

instead of:

idle → walk → run

the system builds the movement between them itself

Technologies:

  • motion matching
  • pose prediction
  • deep learning animation

Result:

  • less manual work
  • more variety
  • more realistic movement

13.2 Real-time Motion Synthesis

Essence:
the animation isn't stored as clips, but assembled at the moment of gameplay

Examples:

  • the character smoothly transitions from any state to any other
  • there are no rigid transitions
  • the movement is always unique

Difference from a Blend Tree:

  • Blend Tree → blends ready-made clips
  • Motion Synthesis → creates the movement from scratch

Where it's used:

  • complex locomotion systems
  • sports simulators
  • AAA projects

Animation in Game Design: From Theory to Practical Solutions

13.3 Procedural Characters

Essence:
the character is fully or partially controlled by algorithms rather than animations.

Capabilities:

  • body balance (like a robot/human)
  • adaptation to any terrain
  • interaction with the environment

Example:

  • the character «decides» for itself how to place a foot
  • keeps its balance when pushed

The shift:

from «character animation»
to behavior simulation

13.4 Neural-network animations

Essence:
neural networks directly control the character's movement.

Capabilities:

  • generating animation from:
    • text
    • intent
  • training on MoCap data
  • realistic movement physics

An example of the future:

"the character is tired and wounded"
→ the animation changes automatically

Limitations:

  • high load
  • difficulty of control
  • instability

How it all comes together

AI + Physics + Procedural + Keyframe
            ↓
   Fully adaptive animation
The main industry shift

Before:

the animator creates every movement

Now:

the animator + algorithms create a movement system

The future:

the system creates the movement itself

Pros and risks

Pros:

  • realism
  • adaptability
  • less manual work

Cons:

  • complexity
  • control
  • performance

Takeaway

The future of animation is:

not clips
but behavior

A short formula

Animation → Simulation → Intelligence

A practical conclusion (important)

Even now:

the best systems are a hybrid of:

  • keyframe
  • procedural
  • AI

14. Conclusion

Animation = part of game design, not just graphics

The main idea of the whole topic:

Animation in games is not about “pretty”, but about “how the game works”

Why this matters

Unlike film:

  • in films → animation tells a story
  • in games → animation takes part in control and mechanics

Connection to gameplay

Input → Animation → Logic → Feedback → The feel of the game
the player doesn't see the code,
they only feel the animation

1. Animation improves gameplay

How exactly:

  • sets the timings of actions
  • defines the difficulty
  • affects the player's reaction

Example:

  • a long attack animation → harder to play
  • a short one → faster and easier

Conclusion:

animation = part of the mechanics

2. Animation enhances UX (the gameplay experience)

What it provides:

  • responsiveness
  • clarity (readability)
  • feedback

The player feels:

  • «the character obeys»
  • «I understand what's happening»
  • «the hit feels real»

If the animation is bad:

  • the controls feel «heavy»
  • the actions are unclear
  • the game is frustrating

3. Animation affects balance

Through what:

  • the duration of actions
  • the ability to cancel
  • reaction speed

Examples:

  • slow attacks → a difficult game
  • fast ones → a dynamic one

Real cases:

  • Dark Souls
    balance through slow animations
  • Overwatch
    balance through readability and fast response

Takeaway

Animation in games is:

  • control
  • visual communication
  • part of the logic system
  • a balance tool

The main idea of the course

The player feels the game through animation

A short formula

Animation = Gameplay + Feedback + Control
A final tip (very important)

When you make a game:

don't think:

make a beautiful animation
think:
what should the player feel?
and based on that:
  • tune the timings
  • add feedback
  • simplify or amplify the movements

The final conclusion

Good animation is the kind the player “doesn't notice”,
but through which they perfectly feel the game.

12. Practical part: animation FSM in Unity

I'll go through this as a practical lab assignment: what the student should do, which files/components are needed in Unity, which Animator parameters to create, and how to connect animations to code.

Assignment goal

Build a simple character with 4 states:

Idle → Walk → Run → Attack → Idle

In Unity this is done through the Animator Controller: it stores animation clips, states, and the transitions between them. Unity describes the Animator Controller as a system that manages clips and transitions through a state machine.

What the result should be

The character should:

stand → walk → run → attack → return to idle

Approximate controls:

  • W / up arrow — movement
  • Left Shift — run
  • Left Mouse Button — attack

Steps to complete it

1. Prepare the animations

You need 4 animation clips:

Idle.anim
Walk.anim
Run.anim
Attack.anim

You can take a ready-made character from Mixamo or the Unity Asset Store.

2. Create an Animator Controller

In Unity:

Project → Right Click → Create → Animator Controller

Name it, for example:

PlayerAnimator.controller

Then assign it to the character:

Player → Animator → Controller → PlayerAnimator

3. Create the states

Open the Animator window:

Window → Animation → Animator

Drag the 4 clips into it:

  • Idle
  • Walk
  • Run
  • Attack

Make Idle the starting state:

Right Click on Idle → Set as Layer Default State

4. Create Animator parameters

The Parameters tab:

Float Speed
Trigger Attack

Unity Animation Parameters are variables of the Animator Controller that can be changed from a script and used to control the state machine.

5. Set up the transitions

Unity transitions let you switch between states and define transition conditions through Animator Controller parameters.

Transitions:

Idle → Walk
Condition: Speed > 0.1

Walk → Idle
Condition: Speed < 0.1

Walk → Run
Condition: Speed > 0.6

Run → Walk
Condition: Speed < 0.6

Any State → Attack
Condition: Attack trigger

Attack → Idle
Has Exit Time: true

For Attack it's better to enable:

Has Exit Time = true

So that the attack plays out to the end and then returns to Idle.

6. Example control script

using UnityEngine;

public class PlayerAnimationController : MonoBehaviour
{
    [SerializeField] private Animator animator;

    private void Reset()
    {
        animator = GetComponent<Animator>();
    }

    private void Update()
    {
        float speed = 0f;

        if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.UpArrow))
        {
            speed = Input.GetKey(KeyCode.LeftShift) ? 1f : 0.4f;
        }

        animator.SetFloat("Speed", speed);

        if (Input.GetMouseButtonDown(0))
        {
            animator.SetTrigger("Attack");
        }
    }

    // This method will be called via an Animation Event
    public void OnAttackHit()
    {
        Debug.Log("Attack hit frame: deal damage to the enemy");
    }
}

7. Add an Animation Event for the attack

Open the Attack clip.

Find the frame where the weapon should hit the enemy.

Add an event:

Function: OnAttackHit

In Unity, an Animation Event is added at a specific moment of the clip and calls a function by name; the event can be added by double-clicking on the Event Line or with the Event button.

What students need to understand

Idle

The character does nothing, but is alive: it breathes, moves a little.

Walk

Slow movement. Speed roughly 0.4.

Run

Fast movement. Speed roughly 1.0.

Attack

A separate state, triggered by the Attack trigger.

The main scheme

Input
  ↓
Script
  ↓
Animator Parameters
  ↓
FSM
  ↓
Animation Clip
  ↓
Animation Event
  ↓
Gameplay Logic

Checking the assignment

The student should demonstrate:

  • 1. There are 4 states: Idle, Walk, Run, Attack
  • 2. There are Speed and Attack parameters
  • 3. The transitions work based on conditions
  • 4. Attack is triggered by a mouse click
  • 5. The Animation Event calls the OnAttackHit() method
  • 6. After the attack, the character returns to Idle

The main idea of the practical:

animation doesn't just play,
it's controlled by code and affects gameplay

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Computer games developming, game-design"

Terms: Computer games developming, game-design