Jump to content

Game not registering when keys are released in IE11


Recommended Posts

Hi There,


I'm developing a simple game at the moment that requires the user to hold the right arrow key to move forwards or the left arrow key to move backwards. I have this code in my update loop as follows:

if(cursors.right.isDown){    //do forwards stuff here}else if(cursors.left.isDown){    //do reverse stuff here}                  

The problem is that occasionally the game appears to not recognise that the key is no longer down when I'm testing in Internet Explorer (the bug has never occurred in chrome) so the player continues to move. I tried removing the cursor functions and using jQuery events to accomplish the same movement but the bug still persists. 


Can anyone shed some light on resolving this issue?


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...