Walk animation only called right as it is switching to another animation
Hello world! I can use your help
I am working on a new game and my animation is not working properly. The issue is that when "shouldBeMoving" switches to "true" the animation only plays right before it switches back to false.
I can provide more screenshots if necessary of the animator tab.
I feel this is a common issue. Thanks!
using UnityEngine;
using System.Collections;
public class HarambeAnimation : MonoBehaviour {
public Animator anim;
public WaypointController ctrl;
void Start () {
anim = GetComponent<Animator> ();
//ctrl = GetComponent<WaypointController> ();
}
void Update () {
if (ctrl.shouldBeMoving == false) {
anim.Play ("Harammbe_Idle_Animation", -1, 0f);
//;
//Anim.SetBool("run", true);
} else {
anim.Play ("Harambe_Walk_Animation", -1, 0f);
}
}
}
well you could send some screenshots of your animation and your code will not see animator.el problems, rather you have to see how your animations
Your answer
![](https://koobas.hobune.stream/wayback/20220612091353im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do i make my player go from walk animation to run animation using blend trees? 1 Answer
Walk the animation using WSAD 0 Answers
Idle breathing animation with still camera 0 Answers
Stop animation at any frame? or have two idle states? 0 Answers
How to get a basic locomotion with idle, walk, jog, run? 0 Answers