Archived

This topic is now archived and is closed to further replies.

Tile based vector movement

This topic is 5774 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am working on the mouse interface for my tile based rpg and was wondering what the best way to get my character to move to the spot that i clicked. Right now it is working... I have tried adding the same amount to playerx and y until it gets to the spot clicked... this works, but looks unnatural. So then I found the x distance and y distance and used the slope to make the character move in the appropriate direction... this also worked to an extent, but what I was wondering is: Is there an "easier" way to find the right directional vector that may be less computationally expensive? Is there a standard way to do this? Thanks - Free Your Mind -

Share this post


Link to post
Share on other sites