• Strange Problem

Hi!

Sorry but I can't post this on forum because I need permission from the Artist.

I have a strange bug with Mixing two animations.

I have a "ninja.jump" animation and a "walk" animation.

Alter I mix the Jump Animation with the Walk Animation, and keep it walking, this happens :

Image removed due to the lack of support for HTTPS. | Show Anyway


He walks with a broke spine! 😛

If I mix it again to other animation, it is ok, the problem only seems to happens after I change from "ninja-jump" to "walk animation".

Here is the Spine Project File :
https://www.dropbox.com/s/9hdb5tjcmlsotmu/ronin.zip

Do you have any ideia of why this is happening?

Thanks!

Can you show the code you are using to apply the animations?

-Nate

wagenheimer escribió

Hi!

Sorry but I can't post this on forum because I need permission from the Artist.

I have a strange bug with Mixing two animations.

I have a "ninja.jump" animation and a "walk" animation.

Alter I mix the Jump Animation with the Walk Animation, and keep it walking, this happens :

Image removed due to the lack of support for HTTPS. | Show Anyway


He walks with a broke spine! 😛

If I mix it again to other animation, it is ok, the problem only seems to happens after I change from "ninja-jump" to "walk animation".

Here is the Spine Project File :
https://www.dropbox.com/s/9hdb5tjcmlsotmu/ronin.zip

Do you have any ideia of why this is happening?

Thanks!

Well.. the code is Pascal but I think it's easy to understand.

  Time := Time + MoveCount * 0.0005;

  if (BlendAnim < 1) and (Assigned(FPriorAnimation)) then
  begin
    FPriorAnimation.Apply(Skeleton, Time, True);
    FActiveAnimation.Mix(Skeleton, Time, True, BlendAnim);
    BlendAnim := BlendAnim + MoveCount * 0.005;
    Mixing := True;
  end
  else
  begin
    FActiveAnimation.Apply(Skeleton, Time, True);
    Mixing := False;
  end;

if I Add this after Mixing:=True

if BlendAnim>=1 then
      Skeleton.SetToBindPose;

The bug does not happens, but it seems to not mix well yet.

It's hard to say. I guess something is wrong with your mixing, but the problem could be anything. You'll have to debug! 🙂

-Nate