PDA

View Full Version : releasing keys BIG problem please help!!


ro1bu
06-25-2005, 07:21 PM
hi
i am making a character, and when i press RIGHT, he moves right and plays an animation of him walking. When i release RIGHT, i want the walking animation to stop, but it keeps going. Atm i hav:

onClipEvent(enterFrame){
if Key.isDown(Key.RIGHT)){
gotoAndPlay(17); //walking animation
this._x -=5; //makes him move
}
}

does ne1 know to stop the animation when the key is released? if you know please explain. thanks!

ro1bu
06-25-2005, 07:44 PM
problem solved

CyanBlue
06-27-2005, 03:38 PM
Howdy and Welcome... :)

Glad to hear that you have solved the problem... How about posting what the solution is so that other people can learn from what you find out???