Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Game Development How to Make a Video Game Player Input and Cameras Move the Player with Animation

Kiefer Levine
Kiefer Levine
6,184 Points

Where is the frog being told to modify its transform?

I've been trying to work on a little project concurrently with this -- and I've tried working with Unity in the past, and I still have trouble making the animation controller behave as I want it to.

When I make something move, what I do is something like:

guy.transform.position += movement

I give "movement" its necessary modifiers separately. The problem I'm coming up to, in particular, is that as long as I input, the Animator Controller's Fixed Update check repeats and begins the animation again, so I only see however much of the animation occurs within the span of one Fixed Update. But the frog hops don't have this issue. How's that work? With the frog, we weren't shown how it moves, all we did was tell the Animator Controller to change animations, and I can't figure out how THAT causes movement.