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

ujz ujz
PLUS
ujz ujz
Courses Plus Student 6,664 Points

Some thoughts and questions

Hello, this project has been fun. Some thoughts:

1) After the bird gets murdered, when game restarts, the score is not reset to 0. I fixed this by adding ScoreCounter.score = 0 in void EndGame 2) Sometimes before I press space to begin the game, whens the frog is just sitting there chilling flies will fly into it even though the game hasn't started. When this happens, the score counter goes up. I've tried to disable this, but can't seem to get it to work. Even if I set the enable of FlyPickup or ScoreCounter = false before the game starts (like we did with PlayerMovement, etc), the score counter still goes up and flies get eaten when they collide with the frog. (Maybe this is happening so fast it occurs before the GameState script even has a chance to boot up?) 3) This doesn't always happen, but sometimes even if the bird touches the frog it doesn't end the game. It triggers the green effects, but game keeps going. I noticed this only happens after the frog has moved around for a while before the bird gets it. If the frog just sits there, the game always ends properly if the bird murders it. Wonder if anyone else came across this.

Thanks