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 trialRandell Purington
9,992 PointsI am not sure what I did wrong. The error keeps climbing
MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEngine.Transform.get_position () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/TransformBindings.gen.cs:27) FollowCamera.Update () (at Assets/Scripts/FollowCamera.cs:21)
I start out and the frog sits there and everything looks good until I move then he disappears like the bird ate him and then the message above pops up and continues counting up until I stop the game. I went back to all the code up to this point and I am not seeing an error on those. Also, the flies are scattered everywhere even past the rocks and logs. When everything ran correctly I only collected maybe 4 or 5 flies and then they would be flying in the rocks and logs and the frog couldn't get them and the bird never moved nor did he eat the frog even when the frog was right in front of him or under him.
I hope this is a simple fix because it would suck to go back and start all over.