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 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
231,248 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
231,248 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.