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 trialDuc Vu
Full Stack JavaScript Techdegree Student 3,433 PointsLine 35 and 38 doesn't just change the animation of the frog, it also changes the position/speed of the frog, correct?
line 35: playerAnimator.SetFloat ("Speed", 3f); line 38: playerAnimator.SetFloat ("Speed", 0f);
When the comment said these line of code only changed the animation of the frog, I was thinking of the frog is just hopping in one place. Since the frog also moved, should the comment be more specific?
P/S: I'm not trying to sound smart, I just want to understand if animation and movement can be understood as one thing or two different things. I'm open to any answer.