How to Rotate and move a character like in WOW
I am trying to Move a character forward and backward like in wow but i have no idea what i'm doing wrong. I have all the Animations setup and the characters works. I've already tried the Transform.translate and the transform.position other than that if someone can answer this within 24 hours and know whats wrong i'm gonna feel Dumb lol Jk. just a heads up im useing a Mixamo character model Character comes with Animations i already have the Character Controller attached to the character. i don't think it matters about the character. I took transform.Translate and the Vector 3 out of the script so i have a better idea of where to put it. Once my question is answered
Ty for any help especially if it works :)
Here is my script:
function Update () {
if(Input.GetButtonDown("Forward")){
GetComponent.<Animation>().Play("Running");
}
if(Input.GetButtonUp("Forward")){
GetComponent.<Animation>().Play("Idle");
}
if(Input.GetButtonDown("Backward")){
GetComponent.<Animation>().Play("mixamo.com");
}
if(Input.GetButtonUp("Backward")){
GetComponent.<Animation>().Play("Idle");
}
if(Input.GetButtonDown("Left")){
GetComponent.<Animation>().Play("left turn");
}
if(Input.GetButtonUp("Left")){
GetComponent.<Animation>().Play("Idle");
}
if(Input.GetButtonDown("Right")){
GetComponent.<Animation>().Play("right turn");
}
if(Input.GetButtonUp("Right")){
GetComponent.<Animation>().Play("Idle");
}
if(Input.GetButtonUp("Jump")){
GetComponent.<Animation>().Play("jump");
}
}
Your answer
Follow this Question
Related Questions
Error CS0103 0 Answers
how to make the player move in only 2 directions? 0 Answers
transform position don't work with scaled parent 0 Answers
Programming knife swing 1 Answer