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 Score, Enemies, and Game State Create Enemy Navigation and AI

Joanne Hardy
Joanne Hardy
3,726 Points

Why isn't my bird's animation playing correctly? He is just floating along the ground and not actually walking.

Why isn't my bird's animation playing correctly? He is just floating along the ground and not actually walking. Checked the codes and they are all fine, maybe an animation bug or something? This is literally first "Game" i have worked on so i don't have the necessary expertise to figure it out myself :(

2 Answers

I just had the same problem. Here's my solution:

In the BirdMovement script, make sure you write the word "Speed" with a capital S.

// Pass the Velocity ot the animator Component
        birdAnimator.SetFloat("Speed", speed);

Hey joanne have you correctly placed the bird in the game area?