Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Introducing JavaScript Let's Make a Game Doing Things With Functions

Martin Guzman
Martin Guzman
2,863 Points

Problems with the Video Game - player can't turn right

Hi,

I have problems making the character going into different directions. For some reason, when I make it go left, then the right key stops working, so the character goes to the end of the screen and it is impossible to make it go to the right.

I haven't changed anything in the code really, so I was wondering if anybody else encountered the same problem and how can I solve it?

Martin Guzman
Martin Guzman
2,863 Points

oH ok,

So, I see what's going on now. For some reason, when I open the game on Chrome it doesn't work properly. On the other hand, I tried to do the same on Firefox and the video game works just fine!. Do anybody knows the reason behind this and how to avoid it?

Thanks

Steven Parker
Steven Parker
218,654 Points

Again, please share your workspace snapshot link. I understand Treehouse uses Chrome for development, so it doesn't make sense that something that works on Firefox wouldn't work on Chrome.

1 Answer

Steven Parker
Steven Parker
218,654 Points

You may have changed something unintentionally. To share your entire environment, use the "snapshot" function (camera icon) in the workspace and then post the link it gives you here. Then we can help you spot the issue.