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 Pickups Script the Fly Movement

Derek Derek
Derek Derek
8,744 Points

Fly doesn't move around, only rotates in fixed position.

The fly in Nick's video moves around in circle, but my fly does rotates in its position rather than actually moving in circles. How can I fix it?

Derek Derek
Derek Derek
8,744 Points

Also, how does Nick specify the radius of the circle in which the fly flies?

1 Answer

Terry Scrimsher
Terry Scrimsher
46,658 Points

I was having the same issue, I had to go through the video again to catch what was going. At just after 4:22 in the video he covers this part. Drag over the "Fly" object to the "Center" field in the "Fly Movement" component.

Rick Hoekman
Rick Hoekman
9,494 Points

Made the same mistake by dragging the child instead of the parent into the field. Thanks! :)