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

JavaScript Introducing JavaScript Finishing the Game Control the Flow with Conditional Statements

why the player stark when he touches a coin or a star or a poison?

why my player stacks when he touches objects. this happens when am dealing with the conditional statements

Steven Parker
Steven Parker
231,236 Points

I don't understand what you mean by "stark" or "stacks". Can you describe the issue in more detail?

sorry i mean stacks and not stark

Steven Parker
Steven Parker
231,236 Points

I'm still not sure what you mean by "the player stacks ...", can you give more detail about that? Also, it would help to make a snapshot of the workspace and post the link to it so we can replicate the issue.

1 Answer

Do you mean it crashes? Just check your code around the coin, probably something a little off when you came to assign a score to it.