QUOTE(Annihilatedsin @ 4 May, 2008 - 07:08 PM)

I hope this helps mate, This is how I code my games. I put all my code in the first frame, the key to getting it to move as long as your arrow key is down you have to add the "onEnterFrame" function. oh btw, this is actionscript 2.0.
CODE
stop();
onEnterFrame = function(){
if(Key.isDown(Key.UP){
_root.MOVIECLIP._y += insert a number here or make a variable that holds a number;
}
Thanks, for the help, but its not what I meant.
What happens is when I press UP arrow my movieclip would jump but the problem is this... it won't go down because I haven't release my UP arrow yet. What I want to happen is I want that my movieclip would jump once I pressed my UP arrow but only
"ONCE", whether I release my UP arrow or not it will automatically go down.
You got it???