- Home /
Question by
ProfMonkey07 · Aug 02, 2020 at 01:28 AM ·
c#animationanimatorposition
teleporter not working due to animator
in my game a train plays an animation where it moves forward before being teleported to the train tracks, when I added the animator, it now doesnt teleport, can someone please help?
anim.Play("trainanimation"); travelling = true;
time1 = startTime1;
track = Random.Range(0, Tracks.Length);
me.position = new Vector2(Tracks[track].position.x, Tracks[track].position.y);
it goes from the start state, to an idle animation where the train is stationary, then when the script says so, it goes to the train leaving the station animation, then back to idle
Comment
Your answer
Follow this Question
Related Questions
How to fix this animator is not playing an animatorcontroller? 1 Answer
Why when creating new animator controller for the character the character is not walking right ? 0 Answers
How can i check if animation has finished playing if the object have no animator attached ? 1 Answer
Animations out of sync? 0 Answers