Linear animation curves

I’m making an animation. I want the animation curves to be linear. They are curved and that really interruptus in my game. How can i make the animations linear and not curved?
Appreciate answers!

Right click the keyframes and set “Both Tangents” to linear.

  1. Click the grey area behind the
  2. Push Ctrl+A to select all curves and keys.
  3. Right-Click on any one of the keys.
  4. Click “Both Tangents”.
  5. Click “Linear”.