Open
Description
This problem can be easily reproduced on the Hello World sample.
Add "this.setKeyboardEnabled(true);" in the init method of a layer.
Add the following method to that layer:
onKeyDown:function(e){
console.log(e);
}
When a key is pressed, the console will show that key in the console at each update (it works for a combination of keys as well). If you keep pressing a key then press another one, only the last one will be shown in the console.
In most of platform games we need to be able to move and press a jump/shoot button at the same time. It can be easily by-passed (keep in memory that a button is pressed and release it on onKeyUp), but it is painful and doesn't seem to be a natural behavior.
Metadata
Metadata
Assignees
Labels
No labels