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 trialprasannakulkarni2
14,918 PointsWhat does the "Speed" string inside FixedUpdate method do?
I am having difficulty figuring out which part of the code tells Unity to play the Jump animation, as we do not mention Jump anywhere in the code.
1 Answer
Russell Cousineau
1,541 PointsIf you look at the Player prefab, you can see a PlayerController in its Animator component.
When you double click the PlayerController, an Animator screen comes up that shows "Layers" and "Parameters" tabs on the left. Speed 0.5 is the only parameter. I don't know anything about creating Animator controllers, but it looks like having Speed > 0.5 causes the controller to move from the "Idle" state to the "Hop" state.