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 Add a Start and End

Alistair Jenkins
Alistair Jenkins
16,761 Points

Disappearing Frog

Hello,

I wonder if anyone can help please. My player game object is destroyed after a few seconds of playing. Things I have tried Checking player movement, player health and game state scripts with videos putting a dummy game state text message in my code to see where the error is triggered watched the videos 4-5 times over consulted the forum.

Any help offered would be much appreciated. Cheers!

1 Answer

Steven Parker
Steven Parker
229,982 Points

:point_right: You might just have a typo.

When taking the same course, I had a couple of bizarre things happen which I always eventually tracked down to a typo (like an incorrect, missing, or additional character on a line). Check your code over thoroughly.

If you want help with it, you could post a link to your github repo here.