# How to move an object while the animation is going on?

I added a jump animation with the character in unity and to move the character I have some code like this:

if (Input.GetKeyDown(KeyCode.Space))
{

transform.Translate(Vector3.forward * 1 * jumpSpeed);
Anim.SetTrigger("is_jumping");
}


But here the character first moving its position (like a glitch) and then doing the animation. How can I make them happen at the same time?

• – Koala Squad Oct 4 '19 at 17:58
• Also see forum.unity.com/threads/… for a more detailed explanation and multiple options to solve the problem. – Koala Squad Oct 5 '19 at 4:46