# Movieclip to mouse click position

**URL:** <https://forum.kirupa.com/t/movieclip-to-mouse-click-position/235710>\
**Category:** flash\
**Created:** [August 14, 2007, 5:27am UTC](https://forum.kirupa.com/t/movieclip-to-mouse-click-position/235710 "2007-08-14T05:27:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xajin](https://avatars.discourse-cdn.com/v4/letter/x/3d9bf3/32.png) [@xajin](https://forum.kirupa.com/u/xajin)\
**Post date:** [August 14, 2007, 5:27am UTC](https://forum.kirupa.com/t/movieclip-to-mouse-click-position/235710/1 "2007-08-14T05:27:28Z")

</div>

I was wondering how I would setup a flash movie to animate a movieclip to move to wherever the mouse was clicked, like a person walking to the clicked position BUT I want to be able to make it stop if it encounters a wall, and then not be able to move through that wall.

I have actually accomplished a basic form of this, but I cannot figure out how to make the clip stop when it encounters a wall and then not be able to move through it. I would greatly appreciate any help!
