
Originally Posted by
leetsxc
What I would do is have the what ever keys held down to go in which ever direction until you are parallel to it and than keeping the forward button held down while monitoring how close you are to the monster then releasing the button when in a certain distance

Would I be able to monitor that through the coordinates? For example, if my character is at 334, 260 and the monster is at 386, 107, would I be able to do something like this (in pseudo-code (ish)):
Code:
if char x < monster x
KeyDown(VK_RIGHT)
else if
char x > monster x
KeyDown(VK_LEFT)
and so on for the y coordinate? I know this wouldn't be all there is to it, but if there's something similar to this that I could do, what would be the best function to use for it?
Thanks for the help, by the way.