I am trying to program an animation in which my character’s gun goes into the zoom position. That is not working, AND the character will not move forward at the desired speed. What Do I Do?
I used the imported First Person player, created a gun with cubes, and made 1 zoom animation. I then programmed this code:
#pragma strict
var PlayerAnimSec : GameObject;
function Start () {
}
function Update () {
if (Input.GetButton("zoom"));
PlayerAnimSec.animation.CrossFade("Zoom");
}
And now my player is moving forward at slower than a snail, but moving backwards fine. I need help- Getting the animation to work, but more importantly for my player to move.