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

Timothy Van Cauwenberge
Timothy Van Cauwenberge
8,958 Points

How does frog know how to jump like frog?

In the code aren't we just telling the frog to move forward, how does it know to do the leaping animation as if it was a real frog? I feel like we would have to make its arms and legs move like that.

2 Answers

Anusha Singh
PLUS
Anusha Singh
Courses Plus Student 22,106 Points

Hey Timothy, I used to wonder too that how did the frog actually know how to jump like a frog, but in maya(I don't know if you have taken the course yet) we have to animate the frog to move like that, and then we can use that animated frog in the game.

Timothy Van Cauwenberge
Timothy Van Cauwenberge
8,958 Points

Thanks so much. So all the animations like that are stored in the object before being brought into unity?

Anusha Singh
PLUS
Anusha Singh
Courses Plus Student 22,106 Points

yes, you're right, all the objects have animations stored in them unless they are static