Movements don't work the way it should

I’m trying to make some basic animation, but I ran into this problem. Whenever I move with WASD, it teleports instead of doing the walking animation. Also the idle plays only one time, then it stops: Imgur: The magic of the Internet

My animator setup and the console:

The code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AppleInput : MonoBehaviour
{
private Animator animator;
// Start is called before the first frame update
void Start()
{
    animator = GetComponentInChildren<Animator>();
}

// Update is called once per frame
void Update()
{
    animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
    animator.SetFloat("Vertical", Input.GetAxis("Vertical"));
}
}

Update:

Forgot to mention, that my character can’t move further away, when I release the W key for forward, it comes back to its original place just like in gif.

I haven’t tinkered with BlendTrees specifically but I don’t see you physically moving the object, just setting the animator properties.

I think for it to move you have to put in some kind of “root motion” option?? I forget exactly because I always move the object myself and sync the animation so I can have precise gameplay even if an animation is messy.

1 Like

I have the root motion applied in the animator, I tried unticking it, but I got the same results. I could try your way, but since I’m relatively new to Unity, I have no idea how to start.