# Game, Multiple Animations?

**URL:** <https://forum.kirupa.com/t/game-multiple-animations/284799>\
**Category:** programming\
**Created:** [March 23, 2009, 7:36pm UTC](https://forum.kirupa.com/t/game-multiple-animations/284799 "2009-03-23T19:36:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason116](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@jason116](https://forum.kirupa.com/u/jason116)\
**Post date:** [March 23, 2009, 7:36pm UTC](https://forum.kirupa.com/t/game-multiple-animations/284799/1 "2009-03-23T19:36:17Z")

</div>

I am making a game much like this one.  
[http://www.funny-games.biz/wpnfire.html](http://www.funny-games.biz/wpnfire.html)

The thing which i am having problems with is having different animations play for the character. For example if hes running and I have a running animation set up on frame 2 of the character movie clip what happens is when i test it ,it goes back and forth and messes up.

Has anyone had experience in platform games or anything similar?

Heres a snippet of code, from this you should hopefully see whats going wrong.

**Enter Frame code**

[AS]

```
    if(moveRight) {
            this.x += Physics.PLAYERSPEED;
            this.gotoAndPlay("walking");
     }

```

[/AS]

Thanks
