*Working with AS2*
I'm working on a game where the main game control is pushing any key on the keyboard. I have coding for moving the character when any key is held down, but what I want is for the character to move when the key is pushed, so you have to continue to push keys for the character to move. This is the code I have for just holding the key down (which I got from another site):
onClipEvent(enterframe){
keyListener = new Object();
keyListener.onKeyDown = function() {
x = Key.getAscii();
_x++
};
Key.addListener(keyListener);
}
At the moment, this is all I need, though I'll need help later...