Just keep walking

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


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/1c3882d727ed5f0ed01b642084b7634e.html

thank you so much… :slight_smile: