Hello. I’m trying to make smooth animation transition when player moving.
There’s the issue, when i’m walking right, and then pressing W to move forward, my animation still going right.
Gyazo with issue: https://gyazo.com/bf1e217af4f26274c1b27b4a65ce0bc0
That’s the code i’m using right now.
if Input.KeyCode == Enum.KeyCode.D then
c1.Animate.run.RunAnim.AnimationId = "rbxassetid://4942312563"
elseif Input.KeyCode == Enum.KeyCode.W then
c1.Animate.run.RunAnim.AnimationId = "rbxassetid://4942126061"
elseif Input.KeyCode == Enum.KeyCode.A then
c1.Animate.run.RunAnim.AnimationId = "rbxassetid://04942487845"
elseif Input.KeyCode == Enum.KeyCode.S then
c1.Animate.run.RunAnim.AnimationId = "rbxassetid://04942488918"
I don’t know any other alternatives, so if you know, i would be grateful if you tell me about the others.
Also sorry for my bad English