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 The Language of Programming

Russ Perry
Russ Perry
13,418 Points

The character doesn't move correctly

If I press right, he moves right and doesn't stop even when I am not pressing the button. I can get him to go left but then he will only go left and I can't get him to go right again unless I refresh the page.

1 Answer

Hi there Russ,

It would be helpful to post your own code snippet, which could help others in guiding you on this matter. As of now, it is quite hard for me or anyone else to offer any help without seeing your code.

I hope that helps! ?

Russ Perry
Russ Perry
13,418 Points

I never edited the code that was given. I think there might be a compatibility issue with Phaser.js and Chrome. I looked into it and it seemed like it has to do with the a security thing on Chrome's end.

I tried again in Firefox and it works just fine.

Perfect! I am glad you found the problem :)