Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.