# Just keep walking

**URL:** <https://forum.kirupa.com/t/just-keep-walking/290292>\
**Category:** Uncategorized\
**Created:** [June 12, 2009, 10:08am UTC](https://forum.kirupa.com/t/just-keep-walking/290292 "2009-06-12T10:08:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTurner](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JTurner](https://forum.kirupa.com/u/JTurner)\
**Post date:** [June 12, 2009, 10:08am UTC](https://forum.kirupa.com/t/just-keep-walking/290292/1 "2009-06-12T10:08:26Z")

</div>

Hy,

i have been using the handy splatterhouse tutorials made by ydjapan and i have tried to make the character move but using a more simple code (well i think it is anyway) but when i press a directional key it moves but still carrys on showing the walking animation, ive tried different methods but come out with no luck

```php

function Movement()
{

if(Key.isDown(Key.RIGHT)){
    rick_mc._x += 10;
    rick_mc._xscale = 100;
    rick_mc.gotoAndStop("walk");
    }

    if(Key.isDown(Key.LEFT)){
    rick_mc._x -= 10;
    rick_mc._xscale = -100;
    rick_mc.gotoAndStop("walk");
    }

    if(Key.isDown(Key.UP)){
    rick_mc._y -= 10;
    rick_mc.gotoAndStop("walk");
    }

    if(Key.isDown(Key.DOWN)){
    rick_mc._y += 10;
    rick_mc.gotoAndStop("walk");
    }
}

onEnterFrame = function()
{ 
Movement();
}

```

I have attached the .swf if any of u lot want to look at it, to try and solve it. [URL=“[http://megaswf.com/view/35f4456271803e8a1dc1b6f9f33cd8ec.html](http://megaswf.com/view/35f4456271803e8a1dc1b6f9f33cd8ec.html)”][http://megaswf.com/view/1c3882d727ed5f0ed01b642084b7634e.html](http://megaswf.com/view/1c3882d727ed5f0ed01b642084b7634e.html)

thank you so much… 🙂
