well, i only calculate the path one time, when the user clicks the mouse, but i do try to move each frame, if i have a path to walk.
its not just cutting around corners that are the problem. first of all, just to let ya know, im back to using the center of the player to calculate movement. IE, i send the pathfinder my center position, but when i move, i still just move based on my actual x,y position. i couldnt get it to work any other way.
the problem is, i cant figure out how to position the player so that his sprite isnt drawn over any solid tiles. its hard to explain, ummm, maybe ill just show you?
lets say im standing on the left side of a building, like so:
i click where the red dot is. now im moved to this spot:
do you see the problem? the players sprite is drawn over the edge of the building. this happends in all kinds of different situations, but this is just one of them. i cant figure out what exact position to bring the player to so that his sprite isnt drawn over any solid objects. if the player was only the size of a tile, my life would be easy. unfortunately, its not =). any ideas?