how do i detect if two keys are pressed at once
note this game is not for mobile so buttons/touch detection wont work
If you are talking about keyboard keys pressed at once you can do so in your update method like this:
MyScript.prototype.update = function(dt){
if (this.app.keyboard.isPressed(pc.KEY_SPACE) && this.app.keyboard.isPressed(pc.KEY_W)) {
// do something
}
};
1 Like
thanks dude!
1 Like