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!
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!