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

Bird Wont Move

I am Forward in the Progress of unity but this started happening

https://youtu.be/9Wk-Q1-sr6U

See the video plz tell which script should i attach for you to verify and i was in (monitor player health Video) or (manage the game state) video when this started happening, please immediate help would be appreciated as i have done all the steps,when this is solved ,all i have to do is build,even the audio is done

1 Answer

Cameron Button
Cameron Button
1,084 Points

The script you need is in the create Enemy Navigation and AI. In the BirdMovement Script there should be a field for target that needs a transform. Drag the player game object to that field. Also you may want to make sure the collider for the bird is working properly as well.

Also, did you double check the update in the notes for the gamestate? Several of the lines from the original video are out of date and the correct lines are in the notes.