- Home /
2D animations transitioning too quickly and looping before finishing
So I am trying to make a very simple 2D platformer, my Idle and Running animations are working perfectly fine. However I am having problems with my Jumping/Falling animations.
The way I have it set up is I have a bool for grounded and a float for vSpeed. In the Animator I make a transition from Any State when grounded = false, to a Blend Tree that contains my Jumping and Falling animations, Jumping when vSpeed > .01 and Falling when vSpeed < -.01.
This works, but the problem is that the transition from Any State to the Blend Tree (when grounded = false) seems to fire off constantly over and over again for the entire time my character is in the air. This makes the animations restart before they ever finish, making very a jerky animation.
I mostly took this from the tutorial at
http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-controllers
However unlike the example in that tutorial, I am not using a spritesheet, my character is made of separate limbs that I animated in Unity. Also sometimes a warning saying Animator has not been initialized pops up.
Any help or advice would be greatly appreciated, thanks.
I am have a similar issue. i have ben working on this a few days now checked out some youtube videos and haven't found anything to fix this. I have a jump animations that has 9 sprites and i have it active on any state and when my character jumps he does part of the animation and when he hits the ground he does the rest of it and then loops to the first 2 sprites then shows his idle . i did uncheck transition to self but that did not seem to work. How do i get it to stop looping and get the full motion correctly. Thx in advance to anyone willing to help.
Answer by FlynnH · Sep 12, 2015 at 05:55 PM
Okay, there is an easy fix for this. In the animator window, click on the transition that is transitioning too fast. Now, on the inspector there should be the word "Settings" somewhere. Click on it and next look for the option "Can transition to self" and uncheck that.
i am having a similar problem, i have been working on this a few days now checked youtube and google and couldn't find a way to fix this. I have a jump animation that is 9 sprites long and it is active from anystate and when my character jumps he does part of the animation then finishes the rest of the animation after he hits the ground and also loops the to the first 2 sprites. How can i get the looping to stop and do the full animation before he hits the ground. i do have "can transition to self" uncheck. thx in advance to anyone wiling to help.
This was my problem, thank you so much. Logged into the forum for the first time just to upvote and give you reputation.