Hello,
I am experiencing a rather weird issue with the animations of my character. I followed the adventure creator manual and the youtube tutorial for animations. All is set and the animation clips work fine with the sprite. Except for one issue.
Once I dropped all the animation clips in the animation controller, it automatically created a link between any state and the Idle_R animation (as seen in the screenshot). No other transitions were created. In the video tutorial it saod that adventure creator handles those on its own. Now when I try to run the game, only the Idle_R animation is looping over and over, but none of the walking animations trigger. Ok, I decided to add transitions between the naimations. Once those were created, on game run the character loops through all the animations non-stop. Removed most of the transitions and am left with only what you see in the screenshot. As expected on game run, now the character loops only between Idle_R and Wak_R non-stop. Overall it seems all animations are being played one after the other (where linked with transitions) and not only the relevant one based on direction and idle/walk status.
The question is: How can I assign, which animation is played when?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you prefer, you can rely on transitions and Mecanim parameters to control yor 2D character - for this, just set your characer's Animation engine to Sprites Unity Complex. However, it's not possible to give more detailed advice without seeing your character's Inspector. Please post it if you have more trouble.
Here is a screenshot of the character inspector:
I have entered the file names in the inspector as per the video tutorial and the manual.
What happens namely is that, if I don't make any transitions, then when the game is run, it goes into the default animation and stays there. If I add transitions it starts looping between them.
In any case, the moment I drop the animations in the animator an automatic stransition is made from entry to some of the animations, which becomes default (Unity 5.0.1f1).
I am not sure, if there needs to be any other kind of other setup made in order for AC to recognize the animations correctly.
Going back to Sprites Unity, again: the animations should play themselves automatically, regardless of what's set as the default state. There should be no transitions in your FSM between the standard animations. The 2D Demo player's animator controller, Brain2D, demonstrates how a typical FSM can be set up for Sprites Unity. If you've done this correctly and it's still not working, I will do my best to fix it for you - but I don't know which animation engine you're now using.