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
- Start with a default cube (or add a UV Sphere)
- Position it at the top of your scene
- Set the timeline to frame 1
Step 2: Insert Keyframes
- Select your object
- Press I (Insert Keyframe menu)
- Choose Location to keyframe position
- Move to frame 20, move the object down
- Press I → Location again
- Move to frame 40, move the object back up
- Press I → Location one more time
Step 3: Play the Animation
- Press Spacebar to play the animation
- Use the timeline controls to scrub through frames
- 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
- Select keyframes in the timeline
- Right-click → Interpolation Mode
- 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
- Select your character object
- Set timeline to 60 frames (2.5 seconds at 24 FPS)
- Go to frame 1
Step 2: Create the Breathing Motion
- Scale the object slightly larger (1.1x)
- Press I → Scale
- Go to frame 30
- Scale back to normal (1.0x)
- Press I → Scale
- Go to frame 60
- Scale to 1.1x again
- Press I → Scale
Step 3: Refine the Animation
- Open the Graph Editor (Window → Animation → Graph Editor)
- Select the scale keyframes
- Change interpolation to Bezier for smooth breathing
- Adjust the curve handles for natural motion
Using the Dope Sheet
The Dope Sheet provides an overview of all keyframes:
Accessing the Dope Sheet
- Go to Window → Animation → Dope Sheet
- 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
- Create a simple bouncing ball with squash and stretch
- Animate a door opening and closing
- Make a simple idle animation for a character
- 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.