Figured it out. There were some Animator Controller settings that weren't adding up.
Animation for each movement direction
I'm very much a rookie when it comes to Unity so hopefully I'm not asking stupid questions. So, with the aid of some tutorials and a few online courses I've been working on setting up a 3D RPG with sprites instead of models. See image below to get an idea of what I'm trying to do.
The 4 direction top down movement is working. But for the life of me I can't get the animations to trigger correctly (I have 4 directions of idle animations and 4 directions of walking animations).
if (Input.GetKeyDown("left"))
{
if (movement.sqrMagnitude < 0.01f)
{
animator.Play("IdleLeft");
}
else
{
animator.Play("WalkLeft");
}
Edit: I only posted the code I have for the left movement, I assume the other three kinda speak for themselves.
What I did is probably one of the most robust ways to do it... if only it were actually working. The sprite itself is a child of a Player prefab, which has a Rigidbody and a Nav Mesh agent. I've been stuck on this for three days... can somebody help me out here? I'm more of a designer than a develope so I'm very new to all of this. All help and tips are much appreciated.
Hello.
I changed the post title.
It must explain your problem. "$$anonymous$$ovement for 3D envoirement" is not the topic. Qour question is about animations! Also recommend to post a screenshot if inspector and Animator (not animation) window
$$anonymous$$y bad. I'll post those screenshots asap, thanks
Follow this Question
Related Questions
The bodyparts of my sprite all move independently and I can't lock them in place. 0 Answers
How do I jump to a specific FRAME of a 2D sprite sheet animation? 0 Answers
Left and right movment are slower than up and down. 0 Answers
Animating Sprites Through Separate Script? 0 Answers
Cant save anim from spritesheet 0 Answers