Move to Mouse provides you with an engine for moving your player to a destination set by the mouse click, avoiding any obstacles in the way. It also includes path finding to and attacking enemies.
Click to download a preview. Includes drawing debug information and mouse sprites. Can easily be customized for animated player sprites and melee attacks.