So I want to make a little fighting game, im strumbling over the animation.
I have a movieclip of the hero, wich contains movieclips of:
-idle
-hit
-walk
this is the code:
onClipEvent(load){
if(Key.isDown(Key.RIGHT))
this.gotoAndStop(“walk”)
if(keyUp(Key.RIGHT));
this.gotoAndStop(“idle”)
}
the idle animation is good when i try it.
but whenever i press right nothing happens.
Can anyone tell me what i’m doing wrong?