Question by
awsumgames · Aug 17, 2019 at 08:46 PM ·
2d sprites2d animation
2 running animations in a sprite sheet
Hey! so i have 2 running animations that i want to use and everytime i move the feet go really fast and they keep switching over really fast
Here is a video of the problem: Example of problem The left one isn't doing that because it doesn't have the anim.play thing.
Here is my move code:
if (Input.GetKey("d") || Input.GetKey("right"))
{
rb.velocity = new Vector2(0.5f, rb.velocity.y);
anim.Play("player_run1");
anim.Play("player_run2");
}
else if (Input.GetKey("a") || Input.GetKey("left"))
{
rb.velocity = new Vector2(-0.5f, rb.velocity.y);
anim.Play("player_run1");
}
Comment
Your answer
Follow this Question
Related Questions
Unity 2D bones un-binding after closing 1 Answer
Why does part of my sprite disappear? 1 Answer
Why is my sprite moving during animation? 0 Answers
How to rotate sword while still looking at mouse? 1 Answer
Sprite facing the wrong way while not moving,Sprite facing the wrong way when not moving 2D 0 Answers