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

SOME OF THE FLIES ARE SPAWNING IN THE ROCKS PLEASE HELP

I am playing the game and the flies are spawing in the rock please help and could you please send me a photo and instructions how to fix it

1 Answer

Robert Lyon
Robert Lyon
7,551 Points

It's hard to tell what your problem might be without looking at your code, but a couple of things you may want to try are make sure that the GameManager Object is centered in the scene by resetting its transform. Also check your FlySpawner script and make sure that the spawnArea variable isn't larger than was described in the video as this will cause flys to spawn outwith the play area.

If this doesn't work it may be a good idea to follow the video about creating the FlySpawner again.

Hope this helps you