This is a basic example of movement towards the mouse. Hold down the left mouse button and objChara will step towards it. It won't try to get closer than 40 pixels away, and it will stop at walls.
(No screenshot, because it's very basic looking. Just a character and some walls.)http://www.mediafire.com/download.php?nzyzewmzyne