Hello!
I have this code (inside the Update method), and I realised that my animation seems to not be applied, but I guess what's happening is that it's being played on the first frame over and over.
if (facingDirection.Equals(Direction.East) || facingDirection.Equals(Direction.West)) //East and West have the same animation
{
if (!isRolling)
{
track0Entry = angieSklAnim.AnimationState.SetAnimation(0, walkEAnimation, true);
}
}
What would be the best way to ensure that the animation is not set if that same animation is already playing? I fear that I might end up having to do some convoluted string comparison every time I set an animation, but there must be a better way
Thanks in advance!