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

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