Basic Animation: Keyframes and Timeline

Animation brings your 3D models to life. In this chapter, you'll learn the fundamentals of animating objects in Blender, from setting keyframes to using the timeline for complex animations.

What You'll Learn

  • Understanding Blender's animation system
  • Setting and managing keyframes
  • Using the timeline and dope sheet
  • Creating simple object animations
  • Animation principles for game assets

Understanding Blender's Animation System

Blender's animation system is built around keyframes - specific points in time where you define an object's properties. Blender automatically calculates the in-between frames, creating smooth motion.

Key Animation Concepts

Keyframes: Points where you explicitly set an object's properties (position, rotation, scale) Interpolation: How Blender calculates values between keyframes Timeline: The main interface for controlling animation playback Dope Sheet: Alternative view for managing keyframes

Setting Your First Keyframes

Let's create a simple bouncing ball animation:

Step 1: Prepare Your Scene

  1. Start with a default cube (or add a UV Sphere)
  2. Position it at the top of your scene
  3. Set the timeline to frame 1

Step 2: Insert Keyframes

  1. Select your object
  2. Press I (Insert Keyframe menu)
  3. Choose Location to keyframe position
  4. Move to frame 20, move the object down
  5. Press ILocation again
  6. Move to frame 40, move the object back up
  7. Press ILocation one more time

Step 3: Play the Animation

  1. Press Spacebar to play the animation
  2. Use the timeline controls to scrub through frames
  3. Press Esc to stop playback

Working with the Timeline

The timeline is your control center for animation:

Timeline Controls

  • Play/Pause: Spacebar or play button
  • Frame Range: Set start and end frames
  • Current Frame: Jump to specific frames
  • Frame Rate: Set frames per second (24 FPS is standard)

Timeline Navigation

  • Arrow Keys: Move frame by frame
  • Shift + Arrow: Jump 10 frames
  • Home: Go to start frame
  • End: Go to end frame

Keyframe Types and Interpolation

Blender offers different interpolation methods for smooth or sharp transitions:

Interpolation Types

  • Linear: Constant speed between keyframes
  • Bezier: Smooth curves (default)
  • Constant: Hold value until next keyframe
  • Stepped: Instant changes

Changing Interpolation

  1. Select keyframes in the timeline
  2. Right-click → Interpolation Mode
  3. Choose your preferred method

Animation Principles for Games

When creating animations for games, consider these principles:

Performance Considerations

  • Keep animations short: 1-3 seconds for most game animations
  • Optimize keyframes: Remove unnecessary keyframes
  • Use simple interpolation: Linear is often sufficient for games

Game-Specific Animation Types

  • Idle animations: Subtle breathing or swaying
  • Movement animations: Walking, running, jumping
  • Action animations: Attacking, collecting items
  • Transition animations: Smooth state changes

Creating a Simple Idle Animation

Let's create a breathing animation for a character:

Step 1: Set Up the Animation

  1. Select your character object
  2. Set timeline to 60 frames (2.5 seconds at 24 FPS)
  3. Go to frame 1

Step 2: Create the Breathing Motion

  1. Scale the object slightly larger (1.1x)
  2. Press IScale
  3. Go to frame 30
  4. Scale back to normal (1.0x)
  5. Press IScale
  6. Go to frame 60
  7. Scale to 1.1x again
  8. Press IScale

Step 3: Refine the Animation

  1. Open the Graph Editor (Window → Animation → Graph Editor)
  2. Select the scale keyframes
  3. Change interpolation to Bezier for smooth breathing
  4. Adjust the curve handles for natural motion

Using the Dope Sheet

The Dope Sheet provides an overview of all keyframes:

Accessing the Dope Sheet

  1. Go to Window → Animation → Dope Sheet
  2. Or change the timeline header to Dope Sheet

Dope Sheet Features

  • Keyframe overview: See all keyframes at once
  • Multi-object editing: Select keyframes from multiple objects
  • Timing adjustments: Move keyframes in time
  • Copy/paste: Duplicate animation data

Animation Tips and Best Practices

Pro Tips for Game Animation

  • Start simple: Master basic keyframing before complex animations
  • Use reference: Study real-world motion for realistic animations
  • Test in context: Preview animations in your game engine
  • Optimize for performance: Remove unnecessary keyframes

Common Mistakes to Avoid

  • Over-animating: Too many keyframes can look robotic
  • Ignoring timing: Proper timing is crucial for believable motion
  • Forgetting to set keyframes: Always keyframe the properties you want to animate
  • Not testing playback: Always preview your animations

Troubleshooting Animation Issues

Animation Not Playing

  • Check if the timeline is set to the correct frame range
  • Ensure keyframes are actually set (look for yellow dots in timeline)
  • Verify the frame rate is set correctly

Jerky Animation

  • Check interpolation settings in the Graph Editor
  • Add more keyframes for complex motion
  • Use easing curves for natural motion

Performance Issues

  • Reduce the number of keyframes
  • Use simpler interpolation methods
  • Optimize for your target frame rate

Next Steps

You've learned the basics of animation in Blender! In the next chapter, we'll explore character modeling techniques for creating human figures. You'll learn about proportions, topology, and modeling workflows that are essential for game character creation.

Practice Exercises

  1. Create a simple bouncing ball with squash and stretch
  2. Animate a door opening and closing
  3. Make a simple idle animation for a character
  4. Experiment with different interpolation types

Related Resources


Ready to create more complex animations? The next chapter will teach you character modeling fundamentals that will give you the skills to create detailed human figures for your games.