- Home /
Rare problem to moving an object using script+animation
Hi all, I have a GameObject called "player_space" with a child object called "sprite". That "player_space" has the following things:
A simple script with a MoveTowards() function on the update() that moves the "sprite" child to x position(it worked before the problem appeared).
An Animator with the following structure:
All worked nicely before i added that three separated animations of above, a trigger made "prepare" animation to play and then starts the "attacking_objective" which only activates a bool var during 1 second on the script that makes the MoveTowards work. But after adding those animations the "sprite" object no longer reacts to the MoveTowards function and also i can't even moving it using the editor while game is running.
The first thing that i thought was that (due all three animations of above moves the "sprite" child directly instead of using the script) one of them was playing by someway. But how can be that possible if i isolated them and also they cannot even start playing?
Thanks for help and sorry for my bad english!
Your answer
Follow this Question
Related Questions
i have a problem with Movement i need help 0 Answers
Why when creating new animator controller for the character the character is not walking right ? 0 Answers
Problems with animation and movement 1 Answer
Can i use mecanim animator while using legacy? 1 Answer
Strange animation behaviour trying to implement hover functionality 1 Answer