# Walk test

**URL:** <https://forum.kirupa.com/t/walk-test/303621>\
**Category:** Uncategorized\
**Created:** [January 23, 2010, 3:33pm UTC](https://forum.kirupa.com/t/walk-test/303621 "2010-01-23T15:33:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iiitttaaa](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@iiitttaaa](https://forum.kirupa.com/u/iiitttaaa)\
**Post date:** [January 23, 2010, 3:33pm UTC](https://forum.kirupa.com/t/walk-test/303621/1 "2010-01-23T15:33:51Z")

</div>

hey i am making a character that walks in the swf the code for walking is

onClipEvent (load)  
{  
setProperty("", \_x, 0);  
setProperty("", \_y, 0);  
speed = 5;  
}

onClipEvent (mouseDown)  
{  
endX = \_root.\_xmouse;  
endY = \_root.\_ymouse;  
}

onClipEvent (enterFrame)  
{  
setProperty("", \_x, \_x + (endX - \_x) / speed);  
setProperty("", \_y, \_y + (endY - \_y) / speed);  
}

well that code works good  
i am making another moviclip named blocker i want my character cant walk in the walker anybody know the code?
