I made a quick example, Take what you need from it.
If it isn't what you wanted just let me know and I'll try my best to re-make it.
Wow this is pretty cool. Unfortunately I am not really good at reading gml yet as I am pretty new to it. Could you possibly add more comments to help me understand better? That would be really helpful thank you.
There's a much easier way to do this, read my post on the matter: http://gmc.yoyogames...howtopic=539096
Also, you should describe what happens when you try it your way. It helps people figure out the problem a LOT. Although in this case, I'm guessing the problem is that he doesn't stop when he reaches his destination.
Yes this works great! Thanks for the help The problem wasn't that it wasn't stopping but cause it was I could only place the obj_mouseclick in obj_player so the player could not move at all. But since I don't need to do that technique anymore, I will be fine. But could you explain to me how you're actually making the obj_player move? All you did was get the distance from one object to another. I'm new to gml so I'm sorry if this is a pretty noobish question. Also, why didn't you use move_towards_point()?