sjmnz Posted February 27, 2015 Share Posted February 27, 2015 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 More sharing options...
Recommended Posts