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

J R
J R
2,037 Points

Explain further the frog built-in animation and movement

I understand the code to move the player, but I don't understand how is the frog moving the body while the player is not doing anything. Can someone explain further what is happening and what was used to create that? What components or objects can I check to understand this built-in animation, where was done etc...

1 Answer

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi J R,

I believe this is beyond the scope of the first course on Game Development.

A lot of the Prefabs that we use in the course have already got animations on them that are beyond the course.

There will be further courses that will hopefully explain some more of these techniques to us. I know the next course is on Maya LT which might be where some of these animations are applied.

Lets keep our fingers crossed!

Nick Pettit
Nick Pettit
Treehouse Teacher

John is correct. Creating 3D assets with animation is a deeper topic; in fact, our upcoming course 3D Art with Maya LT only covers basic modeling and texturing.

Basically, a 3D model is generally animated in the same software package where the 3D modeling takes place. In this course, we created the Frog, Bird, and Fly in Maya and we also animated them in Maya as well. When exporting from Maya, most professionals use a format called FBX for easy import into Unity. This format retains the model and animation data. After some additional tweaks in Unity, the animations can be accessed via script.

In the case of the "idle" animation, it's the default in the animation system. So, even without coding, the idle animation will be applied.