Hi. I'm working on a game, and I need to know if it's possible to make multiple keys do the same action. This is the code I'm using:
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy) && Key.isDown(Key.UP)) {
_root.textbox.gotoAndStop(2);
_root.text = "IT'S A ROCK. YAY ROCK.";
}
}
Is it possible to make it so multiple keys do the action in the same line of code? Like Key.UP, Key.DOWN etc.
I know could just do it for each individual key, but I want to know if there's another way.
Thanks.