Forum rules - please read before posting.

[Solved] Possible mecanim/control regression from 1.27 -> 1.28 ?

edited March 2014 in Technical Q&A
First, awesome product!  Been using this for the past two months on a
serious game and have been nothing but impressed with the polish, documentation, and support.

I just updated from 1.27 to 1.28a and
encountered a problem. I'm not sure if it's my programming error or if
it's a bug in AC. I am using Direct Control mode with a controller. Third person cam and mecanim-based character animation. Everything was
working swimmingly in 1.26 and 1.27 -- animation transitions were fluid
and control of the character and camera was very easy with
the analog sticks. Then I updated to 1.28a and now can no longer make
the player character walk (though I can still turn in place). When I
updated, I skipped updating the 2D demo (I never imported it in the
first place) and I skipped all the root assets that are outside of the
AdventureCreator directory. All my AC Managers are in a folder outside
of the Adventure Creator folder, so were not overwritten.

One thing I noticed - if I revert AnimEngine_Mecanim.cs to the 1.27 version (and keep the rest at 1.28a) then I get control back and everything seems to work again.  So it seems that the problem could be related to the switch from character.walkSpeedScale (etc.) to character.GetMoveSpeed...

Any ideas what might be happening?

Comments

  • That'll be the cause, but the change was made to sync movement speed better with animation speed.

    The calculation's changed slightly, so it may be just a case of having to adjust your Player's movement settings.  I find that a walk speed scale of 3, run speed scale of 6, and acceleration/deceleration of 22 works well.

    They may need a different magnitude if the size of your player is drastically different from the demo game.
  • Ah, the problem was that I had acceleration/deceleration at zero, which was an error on my part but not observable until now.  Thanks!
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.