Assum CharX,CharY as the characters position.
Then your using mousex,mousey to pick the spot. If your not using tiles just the x/y pos figure use mousex/mousey and use these next ifs to figure the direction. If your using tiles...youll have to write a slightly more advanced code, cause if you click 3 tiles right)(east) and 1 tile(north) your anim string would be loaded as ne, and you would move 1ne, and then 2e all as anim ne direction.
If charX=ClickX Andif CharY<ClickY then "anim string south"
If charX=clickX andif chary>clicky then "anim string north"
If charX>clickx andif chary=Clicky then "anim string east"
if charX<clickx andif chary=clicky then "anim string east"
;Note if your not using a tile system, you'll probably want
;to add a 20 or 30 degree pixel varriance on clickx/clicky
;otherwise it'll only pick e/n/s/w on line of pixels
If CharX<ClickX Andif CharY<ClickY then "anim string nw"
if charX>ClickX andif CharY<ClickY then "anim string ne"
if CharX>ClickX andif CharY>ClickY then "anim string se"
if charx<ClickX andif CharY>Clicky then "anim string sw"
I don't know if this helps, but post up your code and i'll try to get it to work for ya
Then your using mousex,mousey to pick the spot. If your not using tiles just the x/y pos figure use mousex/mousey and use these next ifs to figure the direction. If your using tiles...youll have to write a slightly more advanced code, cause if you click 3 tiles right)(east) and 1 tile(north) your anim string would be loaded as ne, and you would move 1ne, and then 2e all as anim ne direction.
If charX=ClickX Andif CharY<ClickY then "anim string south"
If charX=clickX andif chary>clicky then "anim string north"
If charX>clickx andif chary=Clicky then "anim string east"
if charX<clickx andif chary=clicky then "anim string east"
;Note if your not using a tile system, you'll probably want
;to add a 20 or 30 degree pixel varriance on clickx/clicky
;otherwise it'll only pick e/n/s/w on line of pixels
If CharX<ClickX Andif CharY<ClickY then "anim string nw"
if charX>ClickX andif CharY<ClickY then "anim string ne"
if CharX>ClickX andif CharY>ClickY then "anim string se"
if charx<ClickX andif CharY>Clicky then "anim string sw"
I don't know if this helps, but post up your code and i'll try to get it to work for ya