# Simple fighting game

**URL:** <https://forum.kirupa.com/t/simple-fighting-game/231186>\
**Category:** programming\
**Created:** [July 2, 2007, 6:58pm UTC](https://forum.kirupa.com/t/simple-fighting-game/231186 "2007-07-02T18:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Pancake](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mr\_Pancake](https://forum.kirupa.com/u/Mr_Pancake)\
**Post date:** [July 2, 2007, 6:58pm UTC](https://forum.kirupa.com/t/simple-fighting-game/231186/1 "2007-07-02T18:58:16Z")

</div>

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?
