#Animation and FPS movement
1 messages · Page 1 of 1 (latest)
Disable the user movement script/ functionality while the intro is playing, and re-enable it after the intro done ?
good idea i'll try that
yk the public gameobjects and stuff? what is the public ID things for scripts?
@jovial spear ?
Why do you need an id for the script ?
as in like
how do i do this?
i tried this Player.GetComponent<Animator>.enabled = true;
Player.GetComponent<Animator>.enabled = false;
but its not working
wait wait
hmm
i tried this
Player.GetComponent<Animator>().enabled = true;
Player.GetComponent<Animator>().Play("Start Animation");
Player.GetComponent<Animator>().enabled = false;
and instead the player just got crippled and fell over half way through the animation
unless
didnt work
helllo?
You may not be able to move because of the null reference exception
I’m the video you provided there appears to be a null reference exception being thrown in the console
Looks like you don’t use the animator for anything but playing this animation
You are starting an animation, then immediately disabling the animator, so obviously the animation fails