- Home /
Question by
aliendome · Mar 10, 2017 at 07:03 AM ·
scripting problemanimatorpositioninglocationx-axis
Sync an Object's X-axis location to another Object's specific Frame Animation.
I'm just wondering how I would go about having my player's x-axis location determine the animation frame at which another object is at in the game. For example, say my 2D sprite is walking past a portrait painting and I want the eyes to follow my player back and forth depending on their location in the level.
Is there a C# script that can accomplish this? or something else?
Comment
Your answer
Follow this Question
Related Questions
Can I change animation key frame property in script? 1 Answer
Best way of using animator bools in a script 2 Answers
Need help with fixing a code 1 Answer
Replace child of GO with Animator on it 0 Answers
2d Character runs in place via animator 0 Answers