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

Ramy Elsaraf
Ramy Elsaraf
7,633 Points

pls help, when I press play button in unity the game freezes and I see that that the pause button is also pressed.

there is a nullpointer exception in the errors and setDestination in the Navmash also has an error pls help , I don't know what to do ?? there is some error somewhere in the code or in the settings in the frogsnlogs game.

here is the screenshot of the errors I encountered :-

https://drive.google.com/open?id=0B4sv4P_Al7aKTHkxVjJJRlNLb2M

Ramy Elsaraf
Ramy Elsaraf
7,633 Points

here is another screenshot of the updated version of the game, pls kindly help:

https://drive.google.com/open?id=0B4sv4P_Al7aKRVo3a2V2azh6cWM

1 Answer

Michael Zdarsky
Michael Zdarsky
4,533 Points

I would have to see your code, but I would guess the issue is that one of your objects is missing a script. Or if you are trying to attach a script in your code, it is not attaching when you need to access it. I would go through each object and make sure everything is attached and every object is finding the component or returning a message if nothing is found. If that didn't work then I would comment out line by line until I could find the problem.