Hello,
My name is Salty, I am currently working on a future game and have come to a confusing situation.
Question: How do you make the running animation stop if your character is not moving, while you are still holding the shift key?
Hello,
My name is Salty, I am currently working on a future game and have come to a confusing situation.
Question: How do you make the running animation stop if your character is not moving, while you are still holding the shift key?
You can simple put an if else statement there so possibly you could do it something like this
if(Input.Keycode(KeyCode.LeftShift) == true && Input.Keycode(KeyCode.W) == true){
// move
} else if(Input.Keycode(KeyCode.LeftShift) == true && Input.Keycode(KeyCode.W) == false){
// do not move
} else {
//do not move
}
So something like that . I’m not saying its the correct code format okay . I’m just telling you what logic should you do .