Forum rules - please read before posting.

Animator parameters

I have started to control a humanoid using the Animator, using a parameter for the movement speed (similar to what you show in this tutorial:

When I set the MoveSpeed parameter to say 1, the NPC does walk once and then stops (plays the HumanoidWalk animation once). It then seems to be returning to the HumanoidIdle state. Yet this should only happen if MoveSpeed moves below 0.1.

If I remove the transition from HumanoidWalk to HumanoidIdle, my NPC does start walking permanently, as expected. Any idea what may be reseting the MoveSpeed parameter?

I also noticed something else which may be a bug in AC ActionLists. If you create an ActionList with a GameObject parameter, it can be used in all Character Actions to specify the character object, except with Character - Animate (even if you specify the parameter here, you still have the "The action requires a Character before more options will show" message displayed).


  • Found the reason for the animations playing only once. I was controlling the Animator parameters using Playmaker and they had also been placed in the Mecanim Parameters section of AC's NPC Script on the character. Removing the variables from the NPC script solved the issue.

    The issue with providing the NPC character object as a parameter to an AC ActionList also occurs if you try to add an Action of type "Character - Change Rendering" (doesn't accept using the GameObject parameter).
  • The issue with parameterising the Character: Animate / Character: Change rendering Actions is because those Actions need to know details about the specific character involved (chiefly the animation engine).

    What you should be able to do, however, is first assign a "dummy" character whose animation engine matches the one you want to assign via a parameter (in this case, "Mecanim").  Then, without clearing the "Character to animate" field, override it with a parameter.
  • Thanks Chris for the workaround. Is there no better way to improve input control on these actions?
  • You could write a custom Action, but that's the standard method.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.