Animation not playing the same as in the animation editor

I was making an animation for my game when I tested it and saw that it wasn’t playing correctly. For some reason the animation wasn’t continuing on from one of the keyframes, yet it was in the editor. I reinstalled my studio to try to make sure this isn’t an error on my end though it still persisted.

How the animation looks in the editor:
https://gyazo.com/6a9de1b4d4d4423d2eb10a898e18086f

How the above animation plays in game:
https://gyazo.com/964b26982e93c3cc5c1d5fdea43447e7

How the animation looks in the editor with a keyframe deleted:
https://gyazo.com/0a5b6bf3011256b37562495424d96b83

For some reason when I play the animation in-game it switches over to how the above gif looks after the second keyframe.

I thought one of my scripts or another animation was interfering with it so I moved it to a fresh baseplate where there was only a script that played the animation every 1 second. The problem still remained after I did this even though the animation is set on the highest priority, action.

How to recreate:

Download rbxl below
Testing.rbxl (41.7 KB)

Play the animation currently on the dummy through the animation editor.
Then start the game to see how the animation is playing in-game.

The animation in the editor and in the game is the same, you can feel free to re-upload it if you want to check.

I also believe the issue may have to do with the easing style, as when I set the easing style of everything to linear the animation works, though I’m not sure why the easing style would make the animation differ from the editor.
Here is the animation id for the one with a linear easing style: 7097718341
Animation id for the one not working: 7097721437

3 Likes

As soon as the animation is finished the character goes back to its idle animation which causes it to look like that so i recommend making a animation that loops perfectly so i recommend copy and pasting the first keyframe
Here look at this
Testing.rbxl (41.8 KB)

3 Likes

Oh the animation isn’t actually meant for looping, I just did that to showcase it in the gif.

When the animation plays in game the arm moves differently than in the editor.

1 Like

give me a minute i will show you how it looks

https://gyazo.com/c7e5bf53f4fbd9804bcf6db4b79e7af4

1 Like

ok so I got it to look smother and the arm isn’t weird

The animation
https://gyazo.com/6bbba902dd0c98e213ab81bdc58c0e5e

The game
Testing.rbxl (42.0 KB)

1 Like

My issue is that the animation doesn’t match up with the editor. The arm is swinging to the left and down whereas in the animation editor it’s swinging just down. Your animation is still swinging to the left.

Here’s how I want to animation to look and how it is in the editor: https://gyazo.com/6a9de1b4d4d4423d2eb10a898e18086f

Here’s how it comes out when it’s played in-game: https://gyazo.com/964b26982e93c3cc5c1d5fdea43447e7

2 Likes

It’s the easing styles, they look different in the animation editor.

If you are using Cubic easing styles, then switch the easing direction from In to Out, and vice versa.

2 Likes

I’m having a similar issue with curve animations.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.