Maybe I should post this in the javascript forum.
This is a very strange problem. If I press tab in game, the character stops moving, unless I release and press the direction keys again. I have tested that it happens in a fresh project as well.
Since I'm using tab for a "speed up" function, it becomes a little nuisance.
What's more strange, it only happens when the first time I press the tab key. After that, the problem is gone. So every time I open the game and try to use the tab key while the player is moving, the player just stops. The problem returns when I click the game screen with the mouse.
I know I can use another key like shift, but does anyone happes to know the reason?
This is a very strange problem. If I press tab in game, the character stops moving, unless I release and press the direction keys again. I have tested that it happens in a fresh project as well.
Since I'm using tab for a "speed up" function, it becomes a little nuisance.
What's more strange, it only happens when the first time I press the tab key. After that, the problem is gone. So every time I open the game and try to use the tab key while the player is moving, the player just stops. The problem returns when I click the game screen with the mouse.
I know I can use another key like shift, but does anyone happes to know the reason?